I have the following string (taken from a user) in PHP "array" format.
array(
array('age', '30', '>'),
array(
array('city', 'New Delhi'),
array('city', 'New York')
)
);
I wan't to convert this string to a PHP array without using eval (because I want to avoid its security risks). This is similar to doing json_decode. However, in this case the syntax is in PHP. Is this possible in a quick / easy way?