<?php $arr = array('foo', 'bar'); $result = NULL; foreach ($arr as $key => $val) $result = $val; var_dump($result);
You have javascript disabled. You will not be able to edit any code.