php json编码代码片段

$person = array( 
    name => Johny Carson, 
    title => CTO
); 
$personJSON=json_encode($person);//returns JSON string