Jump to content

Notice: Undefined offset: 1 in ....


kraadde

Recommended Posts

I have following code:

 

function chk( & $var ){
    if ( !isset($var) ){
        return NULL;
    }else{
        return $var;
    }
}

chk($loop);
.....
chk($y);
$y = 0;

while (($loop[$y]) != ''){                          error here ?????????? 
            ........  
            $y++; 
        }
......

 

Does anybody know how to fix this? I can not figure out why there should be an undefined offset .

 

HELP ME PLEASE!

 

kraadde

Link to comment
https://forums.phpfreaks.com/topic/71864-notice-undefined-offset-1-in/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.