split or explode quoted strings

From: Date: Mon, 14 Nov 2005 14:28:45 +0000
Subject: split or explode quoted strings
Groups: php.general 
Request: Send a blank email to php-general+get-225738@lists.php.net to get a copy of this message
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@gmail.com

« previous php.general (#225738) next »