I have this code
$arr['... key'] = 'value';
this works and not return error, but I interest, how much justified is array keys, like this '... key' ? (here, after points, is space also). possible obtain some problems, due these keys ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no reason you can’t use whatever string you want as a key name. It won’t cause any errors or other problems. Weird keys might be hard for you to remember or keep track of, and it’s probably not a good idea to use them design-wise, but PHP doesn’t care.