[PHP] Catch line indetation
- Date: Fri, 28 Oct 2016 13:01:16 +0200
- From: Narcis Garcia <informatica@xxxxxxxxx>
- Subject: [PHP] Catch line indetation
Hello, I have a string (I quote here only) as:
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' -> ' '
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php