you can use eval http://ar2.php.net/manual/es/function.eval.php but remember escape all wildcard caracters try eval("\$a = 3; \$b = 2; \$c = \$a + \$b;"); echo $c // should show 5 saludos On Thu, Jun 5, 2008 at 1:46 PM, Ryan S <genphp@xxxxxxxxx> wrote: > Hey all! > Disregard my last email as i solved it myself via eval()... > > Cheers! > R > > > > > > > > Hey, > its easier to start with code and then explain: > > $t_array[]='chr(rand(97,122))'; > echo $t_array[0]; > > The above code outputs > chr(rand(97,122)) > > How can i execute that above code from the array instead of displaying it? > > > Thanks! > Ryan > > > ------ > - The faulty interface lies between the chair and the keyboard. > - Creativity is great, but plagiarism is faster! > - Smile, everyone loves a moron. :-) > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Los sabios buscan la sabiduría; los necios creen haberla encontrado. Gabriel Sosa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php