You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: manual/en-US/coding-standards/chapters/php.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,13 @@ $ref1 = &$this->sql;
145
145
>
146
146
> In PHP 5, reference operators are not required for objects. All objects are handled by reference.
147
147
148
+
## Concatenation Spacing
149
+
There should always be a space between two objects for example
150
+
151
+
```php
152
+
$variable = 'Hello' . 'World';
153
+
```
154
+
148
155
## Arrays
149
156
150
157
Assignments (the `=>` operator) in arrays may be aligned with tabs. When splitting array definitions onto several lines, the last value may also have a trailing comma. This is valid PHP syntax and helps to keep code diffs minimal.
0 commit comments