Ive been using PHP to accompany my websites for a few months now, I find myself needing to jump inbetween pieces of code but not like the normal if, else statements can do, an example of what i mean would be a windows NT batch file, like the following:-
Code: Select all
if exist %windir%\somefile.txt goto step1
goto exit
:step1
execute some functions...
:exit
pause
exitlol, hope people can understand that,
Thanks for any help.
James