Remove blank space from left side of any string by using ltrim() function. Hopefully it can help someone else who needs to strip unwanted characters out of a PHP string. ltrim(), rtrim() and trim() Trimming the string. I'm still a relative PHP newbie, but I at least know that this code works, so I thought I'd share it here. Given those character-stripping needs, here's the source code for PHP function named cleanString I created:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |