I want to change this asp code to PHP, but I don't know how to write it.
<% Dim I, jDim TempStr, Menu_1, menu_2TempStr = "system settings" TempStr = TempStr & "@ system basic settings" TempStr = TempStr & "@ add administrator" TempStr = TempStr & "@ administrator" TempStr = TempStr & "@ change logon password" TempStr = TempStr & "@ SMS interface configuration" TempStr = TempStr & "@ SMS software operation management" TempStr = TempStr & "| FAQs manage "TempStr = TempStr &" @ add FAQ "TempStr = TempStr &" @ manage FAQ "TempStr = TempStr &" @ sensitive character management "TempStr = TempStr &" | reservation notice "TempStr = TempStr &" @ reservation notice "TempStr = TempStr &" @ registered member management "TempStr = TempStr &" @ SMS group sending "TempStr = TempStr & "| outpatient reservation" TempStr = TempStr & "@ outpatient type" TempStr = TempStr & "@ add department" TempStr = TempStr & "@ department import" TempStr = TempStr & "@ department management" TempStr = TempStr & "@ expert add" TempStr = TempStr & "@ expert management" TempStr = TempStr & "@ "Menu_1 = Split (TempStr, "|") For I = 0 To Ubound (Menu_1) Menu_2 = Split (Menu_1 (I), "@") %>
<% For j = 1 To Ubound (Menu_2) Response. Write"
- "& Menu_2 (j )&"
"Next %>
<% Next %>
%>I changed this asp code to PHP, but I don't know how to write it. it should be implemented using arrays. this is a menu option. This is
Reply to discussion (solution)
Is no one solving the problem?
Is the concatenation string,
Then split the string.
Last loop output
If you can understand the above code, you can change it to php.
This is actually quite simple. it is complicated for you to write the code like this:
Thank you for choosing the 5th floor. it's really complicated.
Lines 48-51 should be changed:
For ($ j = 1; $ j {
Echo"
". $ Menu_2 [$ j]."";
}
A row will be added before modification.