PHP compact() Function

The compact() function creates an array from variables and their values. Note: Any strings that does not match variable names will be skipped. Can be a string with the variable name, or an array of variables. Multiple parameters are allowed.…

Read MorePHP compact() Function

PHP asort() Function

The asort() function sorts an associative array in ascending order, according to the value. Tip: Use the arsort() function to sort an associative array in descending order, according to the value. Tip: Use the ksort() function to sort an associative…

Read MorePHP asort() Function

PHP array_walk() Function

The array_walk() function apply a user defined function to every element of an array. The user-defined function takes array’s values and keys as parameters. Tip: To work with deeper arrays (an array inside an array), use the array_walk_recursive() function. Parameter…

Read MorePHP array_walk() Function