A
Anonymous
Guest
Hi,
I am doing some programming stuff with php. My 1st project is a little *.csv-converter, which works great.
I now decided to add a new feature to the converter. It should now also convert *.xls files. The php script just takes a look at the extension and "jumps" to the right part of the script.. (I have to process with a csv file different than with a *.xls)... well that's the theorie.
In other programming languages I had Labels, Rownumbers, all kind of possibilities to jump to subroutines.
I didnt find anything that would work for php the same way.
So, question.. can I define a label where I can jump to (i.e. gosub, goto,..) or do I have to put all the code in a big IF/ELSE statement or redirect to 2 different pages (1 to convert the csv, other for the xls) ?
thx 4 your help
regards
Frank
I am doing some programming stuff with php. My 1st project is a little *.csv-converter, which works great.
I now decided to add a new feature to the converter. It should now also convert *.xls files. The php script just takes a look at the extension and "jumps" to the right part of the script.. (I have to process with a csv file different than with a *.xls)... well that's the theorie.
In other programming languages I had Labels, Rownumbers, all kind of possibilities to jump to subroutines.
I didnt find anything that would work for php the same way.
So, question.. can I define a label where I can jump to (i.e. gosub, goto,..) or do I have to put all the code in a big IF/ELSE statement or redirect to 2 different pages (1 to convert the csv, other for the xls) ?
thx 4 your help
regards
Frank