document.write("
<?php $names = array('John', 'James', 'Mary', 'Sharon', 'Catherine'); foreach($names as $name){ echo $name . "<br>"; }