In my Excel col1 col2 col3
100_45 9852 5
My code $one = isset($excel->sheets[0]['cells'][$x][1]) ? $excel->sheets[0]['cells'][$x][1] : '';
$two = isset($excel->sheets[0]['cells'][$x][2]) ? $excel->sheets[0]['cells'][$x][2] : '';
$three = isset($excel->sheets[0]['cells'][$x][3]) ? $excel->sheets[0]['cells'][$x][3] : '';
$four = isset($excel->sheets[0]['cells'][$x][1]) ? $excel->sheets[0]['cells'][$x][4] : '';
In my Excel only 3 records
but i want to insert 4 or more records,
while inserting or getting $four record showing error "undefined offecet"
please help me removing error