i have an array with around 10 key values. which is the best way to add mysql_real_escape_string to all of them ?
$escaped_array=array_map('mysql_real_escape_string',$array);
Look at array_map
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With