Oops! I'm assinging the return value of eval() to $jess. According to the documentation:
Quote:
quote:from http://www.php.net/eval
A return statement will terminate the evaluation of the string immediately. In PHP 4, eval() returns NULL unless return is called in the evaluated code, in which case the value passed to return is returned. In PHP 3, eval() does not return a value.
|
To do it properly, you need one of two options:
Option 1: Assign $jess inside eval()
eval("\$jess = array({$data})");
Option 2: Use the 'return' keyword to return the new array from eval().
$jess = eval("return array({$data})");
I like the second method better, personally.
Take care,
Nik
http://www.bigaction.org/