php - Severity: Notice Message: Undefined index: range_a -


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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -