- var_dump: documentation ( source)
- reset: documentation ( source)
- end: documentation ( source)
- explode: documentation ( source)
<?php
$author = 'Jan';
$foo = explode(' ', $author);
var_dump($foo);
$firstName = reset($foo);
$lastName = end($foo);
echo $firstName . ' ' . $lastName;