Design methods question
Posted: Sun May 22, 2005 1:40 pm
Hello everyone, this is my first thread in here,
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:-
Im looking for the same kind of methods but with PHP code, not sure if this is possible but havent come across it yet, so for example with PHP is it possible to use code which would do something like a windows batch file and skip to a labelled section of code missing out any other pieces.
lol, hope people can understand that,
Thanks for any help.
James
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