19 lines
892 B
PHP
19 lines
892 B
PHP
<ul>
|
|
<li \>When a string is literal (contains no variable substitutions), the apostrophe or "single quote" must always used to demarcate the string:
|
|
</ul>
|
|
<ul>
|
|
<li \>When a literal string itself contains apostrophes, it is permitted to demarcate the string with quotation marks or "double quotes". This is especially encouraged for SQL statements:
|
|
</ul>
|
|
<ul>
|
|
<li \>Variable substitution is permitted using the following form:
|
|
</ul>
|
|
|
|
<ul>
|
|
<li \>Strings may be concatenated using the "." operator. A space must always be added before and after the "." operator to improve readability:
|
|
</ul>
|
|
|
|
<ul>
|
|
<li \>When concatenating strings with the "." operator, it is permitted to break the statement into multiple lines to improve readability. In these cases, each successive line should be padded with whitespace such that the "."; operator is aligned under the "=" operator:
|
|
</ul>
|
|
|