Menu
Ok so I’ve been developing a page using php5.1.16. My webhost is using 5.2.0.
However, this code works fine with my personal testing server:
[code=php]
$page[“content”][0][“title”] = ‘title’;
$page[“content”][0][“subtitle”] = ‘sub sub’;
$page[“content”][0][“content”] = ‘text text text’;
But it returns this error on my web host:
[code=php]Fatal error: Cannot use string offset as an array in /usr/home/user/public_html/site/code.php on line n
Where n is the first line in the example code above.
Have I been using arrays wrong all along?