Looping through several functions in PHP

PERSIAN

New Member
Basically I want to achieve such functionality that 5-10 functions are executed in a row (like normally). However, I want the script to go back several steps back (ex. from 5th back to 3rd) and continue further (like 4,5,6,7,8,9,10), if specific return is received. Example:\[code\]<?function_1st();function_2nd();function_3rd();function_4th();$a = function_5th();if($a == '3') //continue from 3rd further;function_6th();function_7th();?>\[/code\]Like in this case it should be 1,2,3,4,5,3,4,5,6,7,8,9,10.Would it be better to use object orientated programming (class) in this?Basically I need only advice, how to make it like this in a proper waY :)Regards,Jonas
 
Back
Top