Can someone help me with this problem PLEASE.
I am trying to create an array from the following:
$dataPointData = “shortQuestion=>’”.$row[shortQuestion]."’,rating=>".$row[rating].",color=>’#".$col."’";
$dataPoint = array($dataPointData);
I would like to get:
array(shortQuestion=>‘Ten points’, rating=>9.0000, color=>’#19e500’)
But am getting (using var_dump to display):
array(1) { [ 0 ]=> string(65) “‘shortQuestion’=>‘Ten points’,‘rating’=>9.0000,‘color’=>’#19e500’” }
i.e. it is seeing $dataPointData as one text entry into the array.