<?php $location = 'Boston, MA'; $comma = strpos($location,','); $city = substr($location,0,$comma); $state = substr($location,$comma); echo $city; echo $state; ?>
You have javascript disabled. You will not be able to edit any code.