View Single Post
Old 09-30-2007, 05:43 PM   #4 (permalink)
jordie
The Wanderer
 
Join Date: Sep 2007
Location: Sydney, Australia
Posts: 19
Thanks: 0
jordie is on a distinguished road
Default

Okay, Well I'd just like to say I've found one more function particularly useful when dealing with arrays:

array_map
A handy way to run a function on each element of an array. It saves running a loop, running the function on the element then saving it back to the array.

PHP Code:
$MyInputArray array_map("htmlspecialchars",$MyInputArray); 
Result: Each element in the array will have the htmlspecialchars() function run on it. You can use your own custom functions as well, just pass the name in as a string without the brackets. Read more @ php.net
jordie is offline  
Reply With Quote