I have a small question for you all. I currently have my site on 000webhost, and the following line:
$price = explode(".",$item->sellingStatus->currentPrice)[0];
causes the following error:
Parse error: syntax error, unexpected '[' in /home/a1257018/public_html/scripts/myfile.php on line 58
When it doesn't cause this on localhost. The code should work... explode returns an array and [0]
simply calls the first item. Why is this throwing an error?