Hey... i've been using 'break' to escape from an 'if' loop but now realise this can only be used to exit while, for, foreach etc etc.. I was wondering if someone could tell me the 'if' equivalent of break??
Many thanks, BIOSTALL
I think it is "exit" but that's my Very limited knowledge.
I think 'exit' stops execution of the PHP script all together 😕
BIOSTALL
just out of curiousity....why do you need to break out of an if? Can';t you just code around it?
there is no such thing as an if loop.
If there was such a thing 'else' is the 'way out' of an if structure.
Ah, this is true. Sorry, I just remember that I put it in one of my if statements. Thorpe is right.