sub routines in php
Posted: Mon Jan 16, 2006 5:29 pm
Greetings board members!
I'm new to php and this message board, and do some programming in asp. In asp you can call a sub-routine during some user event. For example:
<%
Sub UserDoesSomething
response.redirect "mypage.asp"
End Sub
%>
<%
If x = 1 Then
Call UserDoesSomething
Else
End If
%>
I was wondering what the php equivalent is to writing and calling a sub like the example above?
Thanks much for the post backs!
I'm new to php and this message board, and do some programming in asp. In asp you can call a sub-routine during some user event. For example:
<%
Sub UserDoesSomething
response.redirect "mypage.asp"
End Sub
%>
<%
If x = 1 Then
Call UserDoesSomething
Else
End If
%>
I was wondering what the php equivalent is to writing and calling a sub like the example above?
Thanks much for the post backs!