This snippet copies folder and its contents to another location How to use: Just call: //$this->copyFolder($source,$target); //Just make sure the variable $target is existed. //DIRECTORY_SEPARATOR... 


How to.. Include once the debug.php before your codes. eg include_once(‘debug.php’) 1. pr($var1, $var2, $arr1, $arr2 so on… ); //print_r declared variables 2. pe($var1,... 


Finally, simple but powerful function to sort Multi Array by specified Index function sortArray(&$arr, $indexToSort, $sortBy = 'asc'){ $arr2bSorted = array(); foreach... 


This simple php script find replaces all values find in an array including the ‘key’ values. function changedValueOfAnArray($arr = null, $from = null, $to = null){ ...