Array In PHP: In Brief

#ARRAY INTRODUCTION #ARRAY MANIPULATION change or modify a value of an existing array #array_pop(): Array Pop removes the last item from an array and returns it. #array_shift(): Array Shift removes the first item from an array and returns it. #array_push(): Add new data at the end of the Array. #array_unshift(): Add new data at the […]

Variable Scope In PHP: In Brief

Variable scope is a boundary for a variable within which it can be visible or accessed from code. There are only two scopes available in PHP namely local and global scopes. Local variables (local scope) Global variables (special global scope) Static variables (local scope) Function parameters (local scope) #STATIC SCOPE