Skip to content

Commit f2c4d81

Browse files
committed
Update README.md
1 parent b9a384c commit f2c4d81

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,26 @@ $ composer require pastuhov/php-exec-command
2323
## Usage
2424

2525
```php
26-
2726
$output = Command::exec(
2827
'echo {phrase}',
2928
[
3029
'phrase' => 'hello'
3130
]
3231
);
33-
32+
// $output = 'hello'
33+
```
34+
or
35+
```php
36+
$output = Command::exec(
37+
'echo {phrase}',
38+
[
39+
'phrase' => [
40+
'hello',
41+
'world'
42+
]
43+
]
44+
);
45+
// $output = 'hello world'
3446
```
3547

3648
## Testing

0 commit comments

Comments
 (0)