- Output for 5.3.0 - 5.3.21, 5.4.0 - 5.4.11
- Parse error: syntax error, unexpected ';' in /in/DG6Yb on line 8
Process exited with code 255.
<?php
$location = 'Boston, MA';
$comma = strpos($location,',');
$city = substr($location,0,$comma);
$state = substr($location,$comma);
echo $city;
echo '<br'>;
echo $state;
?>