As said in the title:
How can I change my php server settings so that writing $x[y] == $x[‘y’]?
edit:
And no I wasn’t lazy, I was handed a bunch of code that was written like this.
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.
Unclear what you mean…
and
is nothing to do with server settings
It’s all about not having erroneous code.
is looking to find a constant called y and if that constant doesn’t exist, it warns you and tries again assuming that you mistyped and that y is a string with a value ‘y’ (the equivalent of)
Fix your code and use ‘y’ so that PHP doesn’t have to guess what you mean, or issue warnings to tell you that you’ve done something wrong