Catch line indetation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux