Page 1 of 1

array key characters

Posted: Fri Nov 25, 2005 5:11 pm
by Luke
What characters are allowed for array keys?

Code: Select all

$something['what's allowed in here']

Posted: Fri Nov 25, 2005 6:28 pm
by Jenk
a valid string or integer.

Posted: Fri Nov 25, 2005 9:52 pm
by shiznatix
as you can see with the color coding of your first post the second ' i not allowed as it messes things up

mysql_real_escape_string();

will help you out

if you are more worried use regex to make sure all of your variables are proper.