Home > PHP > Remove spaces from the beginning of a string – PHP

Remove spaces from the beginning of a string – PHP

<?php
 echo ltrim("  Test"); // Test
 //Will remove the spaces from the beginning
?>
EmailFacebookLinkedInMySpaceDiggTumblrStumbleUponShare
Beginner's Guide....
Categories: PHP Tags: ,
  1. September 15th, 2011 at 13:31 | #1

    I got what you intend, saved to fav, very decent web site . cpanel reseller | cpanel reseller |

  1. No trackbacks yet.
You must be logged in to post a comment.

Switch to our mobile site