I have this:
<?php
...
function x() {
if (condition) {
do something;
***;
}
statements;
}
...
?>
Where the stars are I want it to "fall-out" of the function. That is I want the function to end and not execute statements. Is this possible? E.g. exit; or something?
I realise I can simply do this:
<?php
...
function x() {
if (condition) {
do something;
***;
} else {
statements;
}
}
...
?>
Which will have the same effect. But can it be forced to exit the function?
Hope that's clear.
Thanks,
Alex.