Initial-capping words is a very common task
<?php $first_name = "jeremy"; $last_name = "allen"; $middle_init = "w"; $first_name = ucfirst($first_name); $last_name = ucfirst($last_name); $middle_init = ucfirst($middle_init); print("$first_name $middle_init $last_name<br />"); $name = "jeremy w allen"; $name = ucwords($name); print($name . "<br />"); ?>