Or there are some other ways:
<?
$addition = "";
$array = array("P", "H", "P");
foreach($array as $item) {
$addition .= $item; // concantenates $item onto $addition
}
echo $addition;
?>
or this:
<?
$array = array("P", "H", "P");
$addition = implode("", $array); // implodes all the values in the $array to the string, joining them by the specified character, which in this case is nothing
?>