示例#1
0
 public static object Print(object expression, bool returnString)
 {
     if (returnString)
     {
         // output to a string:
         StringWriter output = new StringWriter();
         PhpVariable.Print(output, expression);
         return(output.ToString());
     }
     else
     {
         // output to script context:
         PhpVariable.Print(ScriptContext.CurrentContext.Output, expression);
         return(true);
     }
 }