RE: [PHP] while-do +array
| From: | Steven Macintyre | Date: | Wed, 31 Oct 2007 14:20:25 +0000 |
| Subject: | RE: [PHP] while-do +array | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263860@lists.php.net to get a copy of this message | ||
> Your subject line says "while-do" + array, following code contains
> a
> "do-while" loop.
Apologies :)
> We can't debug the script very well without a
> sample
> input since we don't know how many times the loop "should" run. To
> debug
> yourself, try using print_r() to see exactly what the following
> line of
> code produces:
>
> $options = explode(",", $armbase);
>
Array ( [0] => 4200_side_frame.jpg [1] => 4220_integral_frame.jpg [2] =>
flamingo_pu_armrest.jpg [3] => flexible_pu_armrest.jpg [4] =>
futura_standard_sleigh_base.jpg [5] => futura_universal_sleigh_base.jpg )
That's the output ... so the array is definitely ok ...
s