I am facing a problem that shows the output undefined offset :0 in multiple lines. I can't understand what type of error it is. Can anyone tell me why such error occurs in PHP. I've looked on other posts but haven't found anything similar that could help me solve this. Any help/suggestions would be appreciated.
$m=0;
for ($i=0; $i < Sizeof($questionlist)/15 ; $i++){
$question = $questionlist[$i];
// $question = $questionlist[$k];
while($m<15*($i+1)){//loop for every question
$FuncName = $question[$m]; //Notice: Undefined offset: 0
$m++;
print_r($FuncName);
$FuncParam = $question[$m]; //Notice: Undefined offset: 1
$m++;
$Constraint = $question[$m]; //Notice: Undefined offset: 2
$m++;
$StuRes = $question[$m]; //Notice: Undefined offset: 3
$m++;
$QValue = $question[$m]; //Notice: Undefined offset: 4
$m++;
$CaseOneI = $question[$m]; //Notice: Undefined offset: 5
$m++;
$CaseOneO = $question[$m]; //Notice: Undefined offset: 6
$m++;
$CaseTwoI = $question[$m]; //Notice: Undefined offset: 7
$m++;
$CaseTwoO = $question[$m]; //Notice: Undefined offset: 8
$m++;
$CaseThreeI = $question[$m]; //Notice: Undefined offset: 9
$m++;
$CaseThreeO = $question[$m]; //Notice: Undefined offset: 10
$m++;
$CaseFourI = $question[$m]; //Notice: Undefined offset: 11
$m++;
$CaseFourO = $question[$m]; //Notice: Undefined offset: 12
$m++;
$CaseFiveI = $question[$m]; //Notice: Undefined offset: 13
$m++;
$CaseFiveO = $question[$m]; //Notice: Undefined offset: 14
$m++;