note 10231 deleted from language.variables.variable by irc-html

From: Date: Sat, 19 Jan 2002 18:55:58 +0000
Subject: note 10231 deleted from language.variables.variable by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25207@lists.php.net to get a copy of this message
[Ed: eval() is easier] It is possible to create an array using variable variables (but difficult) take a look at this : $ss='test[hello]'; if(ereg("([^[]*)\[([^]]*)",$ss,$out)) ${$out[1]}[$out[2]]= "hello world"; echo "view --->" . $test[hello]; #display hello world pffffuiiiii.

« previous php.notes (#25207) next »