PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
Luke
The Ninja Space Mod
Posts: 6424 Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA
Post
by Luke » Fri Nov 25, 2005 5:11 pm
What characters are allowed for array keys?
Code: Select all
$something['what's allowed in here']
Jenk
DevNet Master
Posts: 3587 Joined: Mon Sep 19, 2005 6:24 am
Location: London
Post
by Jenk » Fri Nov 25, 2005 6:28 pm
a valid string or integer.
shiznatix
DevNet Master
Posts: 2745 Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:
Post
by shiznatix » Fri Nov 25, 2005 9:52 pm
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.