Hi is there a way to apply a 'built in' function to each element of an array? Array_walk() only works with 'user-defined'?
I need to stripslashes() from each element of an array that is returned by a function i'm using.
Nick
why not wrap a UDF around stripslashes:
function stripMe($strText) { return stripslashes($strText); }
then use stripMe() in array_walk()
p.
Yep, already doing that, it just seems a little wasteful and I wondered if there was another less ugly way.
Thanks again