<?php
$myPen = 'I have a blue pen';
$myPen = ucwords($myPen);
echo $myPen;
echo '<br>';
$myPencil = 'I HAVE A GREEN PENCIL';
$myPencil = ucwords($myPencil);
echo $myPencil;
?>
In this code ?> is not necessary. ?> is used only when php is used in between other language codes.
Bookmarks