/* * NOTES: * - We don't print an ampersand nor other text before a referenced value because * PHP doesn't do so and, most importantly, a compiler uses variables of type PhpReferences * e.g. for global variables which may never be used as a reference by a user * (via =& operator). If references were not transparent user may be confused by * marking them by an ampersand. * - Hence references are marked by ampersand by PhpArrays and PhpObjects on their own. */ /// <summary> /// Prints a value which is referenced by this instance. /// </summary> /// <param name="output">The output where the value is printed.</param> public void Print(System.IO.TextWriter output) { PhpVariable.Print(output, value); }
public void Print(System.IO.TextWriter output) { PhpVariable.Print(output, cow.Builder.ToString()); }