This is a discussion on countinue behavior within the PHP Language forums, part of the PHP Programming Forums category; Is that a normal behavior of countinue? Shouldn't it skip the echo? ------------------------------------- <? for ($i=0; $i < 10; $...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Is that a normal behavior of countinue?
Shouldn't it skip the echo? ------------------------------------- <? for ($i=0; $i < 10; $i++) { countinue; echo "bla"; } ?> ------------------------------------- chris@amigo chris $ php test.php blablablablablablablablablablachris@amigo chris $ chris@amigo chris $ php --version PHP 5.0.3 (cli) (built: Dec 19 2004 18:53:12) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies chris@amigo chris $ |
|
|||
|
Christoph Enzmann wrote:
> Is that a normal behavior of countinue? > Shouldn't it skip the echo? > > ------------------------------------- > <? > for ($i=0; $i < 10; $i++) { > countinue; > echo "bla"; > } >> > ------------------------------------- > When you use "continue" instead of "countinue" it will... JW |