Linear Array -> Array which have numeric key
Associative Array -> Keys are Alphanumeric
Multi Dimensional Array ->
array_shift -> return top element value
array_unshift -> return new size of array
array_pop -> it return value of last element
array_push -> return new size of array
Useful Array Functions
array -> string = implode
string -> array = explode
unset() -> remove that var
isset() -> check whether the element exist or not
array_merge() -> merge two arrays
array_combine() -> combine two array
array_reverse() -> reverse the value of array
array_shuffle() -> shuffle the values of array
array_filter() ->
array_key() ->
array_value() ->
array_unique() ->
array_map() ->
trim() ->
rtrim() ->
ltrim() ->
sort() ->
asort() -> sort all the values
ksort() -> sort array with key
krsort() ->
arsort() ->
rsort() ->
array_intersect() ->
array_shift() ->
array_slice -> Get value from any array b/w two index
array_key_exist ->
Associative Array -> Keys are Alphanumeric
Multi Dimensional Array ->
array_shift -> return top element value
array_unshift -> return new size of array
array_pop -> it return value of last element
array_push -> return new size of array
Useful Array Functions
array -> string = implode
string -> array = explode
unset() -> remove that var
isset() -> check whether the element exist or not
array_merge() -> merge two arrays
array_combine() -> combine two array
array_reverse() -> reverse the value of array
array_shuffle() -> shuffle the values of array
array_filter() ->
array_key() ->
array_value() ->
array_unique() ->
array_map() ->
trim() ->
rtrim() ->
ltrim() ->
sort() ->
asort() -> sort all the values
ksort() -> sort array with key
krsort() ->
arsort() ->
rsort() ->
array_intersect() ->
array_shift() ->
array_slice -> Get value from any array b/w two index
array_key_exist ->