Parse string with variables

From: Date: Wed, 31 May 2006 11:18:26 +0000
Subject: Parse string with variables
Groups: php.general 
Request: Send a blank email to php-general+get-237141@lists.php.net to get a copy of this message
Hi there, I am trying to parse a plain text which contains variables. The string looks like this: P=1 U=test T=ok P=2 U=test2 T=anything How could I create arrays out of this. To be able to access the values like this: echo $P[1]; parse_str does not work here and I could not find another function which does this. Thank you for any hint, Merlin

« previous php.general (#237141) next »