PHP PHP Arrays and Control Structures PHP Loops While Listing Array Values

Sharlene Walton
Sharlene Walton
190 Points

Blank screen in browser

When I look at my file in the browser it is just a blank screen. Here is the code:

<?php $learn = array('Conditionals', 'Arrays', 'Loops'); $learn[] = 'Build something awesome'; array_push($learn, 'Functions', 'Forms', 'Objects'); array_unshift($learn, 'HTML', 'CSS'); asort($learn);

while (list($key, $val) = each($learn)) { echo "$key => $val\n"; };

?>