Hai there,
I want to use a function like HTMLSpecialChars()with an array.
But it appears that this function only works on string variables.
Does sombody know another solution?
Thanks
Hai there,
I want to use a function like HTMLSpecialChars()with an array.
But it appears that this function only works on string variables.
Does sombody know another solution?
Thanks
Hi Eelco,
Why not use a for statement to extract the array element to a variable and then carry out the HTMLSpecialChars() function and write it back to the array?
Regards,
David
put the stuff into $array and do this:
while(list($key, $val) = each($array))
$array[$key] = HTMLSpecialChars($val);
that should do the trick...
You might want to reset() the $array first but probably you wont have to...
Andreas
Tanks to the both of u, I will try this.