Jump to content

Fix this problem


vikal

Recommended Posts

<?php

$bag = array(1,2,3,4,5);

 

shuffle ($bag);                  // shake the bag

 

for ($i=0; $i<5; $i++)

{

    echo array_pop($bag);          // pull from the bag

}

?>

 

 

in this code there is problem in for loop with this error....Parse error: parse error, unexpected T_INC, expecting ')'...

 

can any one tell about the brief explanation of this code

Link to comment
https://forums.phpfreaks.com/topic/91671-fix-this-problem/
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.