Jump to content

return array


jwk811

Recommended Posts

// or

$x = 0;
while ($array[$x]) {
   echo $array[$x];
   $x++;
}

// or...LoL

 

CV,

 

 

If error_reporting's "E_ALL"

Your code is going to fall

  You should use "isset()"

  And then you won't get

Annoying notices at all

 


$x = 0;
while (isset($array[$x])) {
   echo $array[$x];
   $x++;
}


Link to comment
https://forums.phpfreaks.com/topic/39325-return-array/#findComment-189861
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.