split or explode quoted strings

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

 



Hello,

I would like to split or explode strings in a way that
quoted strings inside the strings should remain.
e.g.:

"first second \"third third\" fourth \"fifth fifth fifth\""

after the split I need:

"first"
"second"
"third third"
"fourth"
"fifth fifth fifth"

Is there a simple way to achieve this in PHP? (e.g. like Perl
Text::ParseWords quotedwords function)

Thanks In Advance,

--Laszlo Ordogh
ordoghl@xxxxxxxxx

--
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