Skip to content

Commit 656a352

Browse files
authored
New increment/decrement syntax
1 parent 046bb39 commit 656a352

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,23 @@ $userInstance = new User;
8383
$value = [
8484
[
8585
'id' => 1,
86-
'balance' => '+500' // Add
86+
'balance' => ['+', 500] // Add
8787
] ,
8888
[
8989
'id' => 2,
90-
'balance' => '-200' // Subtract
90+
'balance' => ['-', 200] // Subtract
9191
] ,
9292
[
9393
'id' => 3,
94-
'balance' => '*5' // Multiply
94+
'balance' => ['*', 5] // Multiply
9595
] ,
9696
[
9797
'id' => 4,
98-
'balance' => '/2' // Divide
98+
'balance' => ['/', 2] // Divide
9999
] ,
100100
[
101101
'id' => 5,
102-
'balance' => '%2' // Modulo
102+
'balance' => ['%', 2] // Modulo
103103
] ,
104104
];
105105
$index = 'id';

0 commit comments

Comments
 (0)