how to use trim function? (uses of trim function)
Wednesday, August 15th, 2007trim( ) - removes the unwanted spaces from front and back of the string.
1. check for empty username and other controls in a form .
example:
<?
if(trim($_POST[unsername])==”")
echo “Username is empty”;
?>
Posted by Suresh B