The following string (which comes from database) is stored as a variable,
str = "if($me == 1)
{
return array(9=>true,10=>true,11=>true)
}
else
{
return array(9=>false,10=>false,11=>false)
}"
Since the script is dynamic... so need to find output from this by passing a variable. can anyone help me how to do this.