php - Severity: Notice Message: Undefined index: range_a -
this question has answer here:
array format-->
array([0] => array( [qus] => 1 [y_n] => 0 [range_a] => 0 [desc] => [range_b] => [highriskcomm] => ));
controller -->
foreach($sup_qus $riskdata){ if($riskdata['range_a']==10){ // enter code here } }
php error:
severity: notice message: undefined index: range_a
how can fix this?
it's multidimensional array.
echo $riskdata[0]['range_a'];
look @ array format posted
array [0] => ...
Comments
Post a Comment