I have an array with many strings, of which most have spaces or tabs at the beginning, but no fixed number of them. Example:

$arr[0] = ' Hello.';

How can I separate them into two strings? Like:

Array
(
    [0] => Array
        (
            [0] => "    "  //I added the quotes to notice the space.
            [1] => Hello.
        )
)

TIA!
Anguz

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



Reply via email to