PHP Developer's Dictionary- P25:PHP is an open source, server-side, HTML-embedded scripting language used to create dynamically generated Web pages. With an easy-to-use syntax and a large, extensible library of modules, PHP brings together the best of Perl, C++, and other languages. | PHP Developer s Dictionary The array_vaiues function returns all the values not keys of the input array. array_walk Syntax int array_walk array arr string func mixed userdata Description The array_waik function which was added in PHP and PHP executes the function func with each element in the array. Each func call will have the array value as the first parameter and the array key as the second parameter. When userdata is present it will be passed as the third parameter to func . Note that when func encounters errors a warning will be generated each time. To suppress these warnings call array_waik with an @ sign in front of it. Also array_waik doesn t reset the array by default so you might need to call reset between subsequent calls of array_walk . arsort Syntax void arsort array array Description The arsort function sorts the array in reverse order based on the values in the array with the corresponding indices keys being maintained. array1 array c 1 b 2 a 3 arsort array1 array1 a 3 b 2 c 1 asort Syntax void asort array array Description IT-SC book 120 PHP Developer s Dictionary The asort function sorts the array based on the values in the array with the corresponding indices keys being maintained. array1 array a 3 b 2 c 1 asort array1 array1 c 1 b 2 a 3 compact Syntax array compact string varname array varnames . Description The array_compact function which was added in PHP takes both names of variables and arrays that contain the names of variables and looks up these variable names in the current symbol table. Each variable name becomes a key and the variable s content becomes the value for a new array which is created and returned. count Syntax int count mixed var Description The count function returns the number of elements in var which is typically an array. If var is not an array the function will return 1 if var is not set count will return 0. current Syntax mixed current array array Description IT-SC book 121 PHP Developer s Dictionary The .