Hi all,
I have been php'ing for years now, but only discovered yesterday that I can use some VB syntax within php, only to find out as it's a well known control structure in a few languages. I say VB because that is the other language I use most:-
<?php
error_reporting(E_ALL|E_STRICT|E_DEPRECATED);
$a = "bar";
if($a == "foo"){
goto first_one;
}
else{
goto second_one;
}
first_one:
echo "this is foo";
exit;
second_one:
echo "this is bar";
exit;
?>
I could have some fun with this!
Just thought I would share what I found!
Cheers,
MRb