I'm working on new projects with a more strict php.ini and running into some weird behavior.
For instance, I'm pulling info from a db and trying to run good old nl2br to display new lines as <br> in the HTML. But, if I try to access the array value by name and put it into a new variable I get errors - it works fine if I echo it out though.
If I access the variable by it's position, it works fine.
Thoughts?
For instance, I'm pulling info from a db and trying to run good old nl2br to display new lines as <br> in the HTML. But, if I try to access the array value by name and put it into a new variable I get errors - it works fine if I echo it out though.
If I access the variable by it's position, it works fine.
PHP:
$variable = $row[variable]; // Doesn't work
$variable = $row[1]; // Works
Thoughts?