Catch line indetation

From: Date: Fri, 28 Oct 2016 11:01:16 +0000
Subject: Catch line indetation
Groups: php.general 
Request: Send a blank email to php-general+get-325779@lists.php.net to get a copy of this message
Hello, I have a string (I quote here only) as: ' <table>...</table>' As you can see there are 3 spaces at the beginning, but it could be 0 or 4 or any number of spaces. How can I get a string with only the initial spaces part? ' <table>...</table>' -> ' ' 'hello' -> '' ' hello' -> ' ' Thanks.

« previous php.general (#325779) next »