$i = 0; do { echo $i++ . "<br />\r\n"; } while ($i < 0);
I would expect it to output "0" (followed by one BR tag and a carriage-return and new-line characters)
Why? Because the comparison check comes at the end of the loop, not the start.
How many points is this worth? 🙂
Weedpacket;11013923 wrote:How many points is this worth? 🙂
And.. are we allowed to use our notes, or is this a closed-book quiz/test? 😉
crap... I already tested to confirm.
hilbill672;11013917 wrote:$i = 0; do { echo $i++ . "<br />\r\n"; } while ($i < 0);
Nothing, because it's not a function? :evilgrin:
OTOH, it does produce some output. 😃
dalecosp;11013997 wrote:Nothing, because it's not a function? :evilgrin: OTOH, it does produce some output. 😃
QFT
dalecosp;11013997 wrote:OTOH, it does produce some output. 😃
OTOH, you have different fingers.