Hello there,
I'm coming over from ASP. One of the most critical code I used in ASP was the "execute" command, which takes strings of text and variables and executes them as a command. Is there any equivalent in PHP? Here's an example (even if youdon't do ASP you'll understand this:
<%
value1 = 1
value2 = 5
theArray = "someArray"
variableGroup = "sampleVariable"
theIndex = 3
execute( "if someCondition = true then " & someArray & "(" & value1 & "," & value2 & ") = " & variableGroup & theIndex )
%>
This would be the same as writing this command:
if someCondition = true then someArray(1,5) = sampleVariable3
This has always allowed me to cobble together commands and variable assignments when no other easy was was there.
Is there an equivalent in PHP?