chop fonksiyonu

Php'de bir string ifadedeki boşlukları nasıl kaldırırız? 
 
<?php
$toomuchspace 
"    how are you    ";
echo 
"<$toomuchspace>"

$thatsbetter chop($toomuchspace);
echo 
"<$thatsbetter>";  

?>

< how are you > < how are you>