Is there a way to do a subroutine call in PHP?
Without being specific as to the coding details, would like to do something like the following:
If x = 1
call subroutine_a
If x = 2
call subroutine_b
where subroutine_a and subroutine_b are separate pre-defined chunks of PHP code.
1. how to define the two subroutines in PHP?
2. how to call a subroutine from within an IF statement?
Thanks in advance for your help.