Jump to content

Help with for-loop


thomashw

Recommended Posts

I keep getting a "Maximum execution time of 30 seconds exceeded..." on the first line of this code. The $optionvalue array has two values in it.

 

for ( $j = 0; $j <= count( $optionvalue ) - 2; $j + 2 )
{
$name = $optionvalue[ $j ];
$price = $optionvalue [ $j + 1 ];
$options[ $name ] = $price;
}

Link to comment
https://forums.phpfreaks.com/topic/103667-help-with-for-loop/
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.