I have a string like this.
$function = "
array_splice($arr . $arrayimploded, end($index), 1, $data);
";
$arr is an array
$arr = array(0 => array(0 => "s",
1 => "es"),
1 => array(0 => "ing"),
2 => array(0 => "d",
1 => "ed")
);
The $arrayimploded is "[0]"
The end($index) is "1"
The $data is "bob"
So I'm trying to get php to do interpret that message as
array_splice($arr[0], 1, 1, 'bob');
I don't know how to use eval() and nothing on google seems to tell me how to use it.
Thanks in advance.