trim whitespace in php

by Ramya 2010-01-12 20:44:38

trim whitespace in php:

Strip or trim whitespace in php using trim().
<?php
$hello = "Hello Hscripts.com ";
$trimmed = trim($hello);
echo $trimmed;
?>


O/P:
Hello Hscripts.com Razz

Tagged in:

915
like
0
dislike
0
mail
flag

You must LOGIN to add comments