countinue behavior

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christoph Enzmann

    countinue behavior

    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
    blablablablabla blablablablabla chris@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 $
  • Janwillem Borleffs

    #2
    Re: countinue behavior

    Christoph Enzmann wrote:[color=blue]
    > Is that a normal behavior of countinue?
    > Shouldn't it skip the echo?
    >
    > -------------------------------------
    > <?
    > for ($i=0; $i < 10; $i++) {
    > countinue;
    > echo "bla";
    > }[color=green]
    >>[/color]
    > -------------------------------------
    >[/color]

    When you use "continue" instead of "countinue" it will...


    JW



    Comment

    • Christoph Enzmann

      #3
      Re: countinue behavior

      Ups.
      Lets forget it.

      Janwillem Borleffs schrieb:
      [color=blue]
      > When you use "continue" instead of "countinue" it will...
      >
      >
      > JW
      >
      >
      >[/color]

      Comment

      Working...