Home > PHP > trim()

trim()

It strips whitespace from the beginning and end of a string

Example

<?php
echo trim(” php code “);
?>

Output

php code

EmailFacebookLinkedInMySpaceDiggTumblrStumbleUponShare
Beginner's Guide....
Categories: PHP Tags: , ,
Comments are closed.

Switch to our mobile site