Hi
In ASP there is a function Select Case.
I was wondering if there is a similar function in PHP?
I know you can you use if, else if and so on, but I do not intend to do that.
Below is an example of my ASP script which I would like to rewrite using PHP:
<%
Dim nav = Request.QueryString("site")
Select Case nav
Case "", "index", "main"
Server.Execute(front.asp)
Case "about"
Server.Execute(about.asp)
Case Else
Server.Execute(404.asp)
End Select
%>
Thank you in advance