Jump to content

While Loop Syntax Error


unemployment

Recommended Posts

you forgot to end your array line, try this

$information = array(

$i = 0;
while ($i = count($actions))
{
	array($actions[$i], $action_details[$i]);
	$i++;
}
);

That helps a little bit, but I am still getting the same parse error. Parse error: syntax error, unexpected ';', expecting ')  .  I imagine that it is because I have ; inside of the array.  Can I put a while loop in an array?

 

$information = array(

$i = 0;
while ($i = count($actions))
{
	array($actions[$i], $action_details[$i]);
	$i++;
}
);

 

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.