First of all, fix your eval() structure by actually having eval() output the array...
$cmd = 'return array("fname"=>"mark","lname"=>"wilson")';
Second of all, why in the heck are you using eval() just to set a variable's contents?!?!?!
$cmd = array("fname"=>"mark","lname"=>"wilson");
Boom. Hastle free, easy to read, etc. etc.
EDIT: Also, 2 things...
1. If you're posting PHP code, please use the board's
tags, so that we can read it easily.
2. If you're posting PHP code... uhm... don't attach it? That's just redudantly redudant.