Beispiel #1
0
 public static string Export(object variable, bool returnString)
 {
     if (returnString)
     {
         // output to a string:
         StringWriter output = new StringWriter();
         PhpVariable.Export(output, variable);
         return(output.ToString());
     }
     else
     {
         // output to script context:
         PhpVariable.Export(ScriptContext.CurrentContext.Output, variable);
         return(null);
     }
 }