19 lines
408 B
Plaintext
19 lines
408 B
Plaintext
``++echo++`` can be called with or without parentheses, but it is best practice to leave parentheses off the call because using parentheses with multiple arguments will result in a parse error.
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
----
|
|
echo("Hello"); // Noncompliant, but it works
|
|
echo("Hello", "World"); // Noncompliant. Parse error
|
|
----
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
----
|
|
echo "Hello";
|
|
echo "Hello","World!";
|
|
----
|
|
|