Skip to content

Commit 7766325

Browse files
committed
Better example (thanks @zero-24)
1 parent 90f63b3 commit 7766325

File tree

1 file changed

+2
-1
lines changed
  • manual/en-US/coding-standards/chapters

1 file changed

+2
-1
lines changed

manual/en-US/coding-standards/chapters/php.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ $ref1 = &$this->sql;
149149
There should always be a space between two objects for example
150150

151151
```php
152-
$variable = 'Hello' . 'World';
152+
$id = 1;
153+
echo JRoute('index.php?option=com_foo&task=foo.edit&id=' . (int) $id);
153154
```
154155

155156
## Arrays

0 commit comments

Comments
 (0)