Skip to content

Commit 971ac9a

Browse files
committed
Updates rules_reference.md
Auto commit by GitBook Editor
1 parent f9a2780 commit 971ac9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules_reference.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Just like method chains in any language, you may chain up a bunch of methods li
1414
A couple of things to note though is that:
1515
* Rules in DevLess uses the arrow operator `->` for joining methods together instead of `.` as seen in PHP .
1616

17-
* Also to concatenate strings together you are advised to use the `concatenate` method as `.` is used for concatenation in PHP and this might be a little confusing. So instead of `->beforeQuerying()->assign("hello "." world")->to(greetings)` `->beforeQuerying()->concatenate("hello ","world" )->storeAs(greetings)`
18-
* Also although PHP variables starts with a `$` prefix you may choose to omit this when working with rules , eg `beforeQuering()->assign(input_name)->to(name)` and `->beforeQuering()->assign($input_name)->to($name)` will work fine with DevLess Rules.
17+
* To concatenate strings together you are advised to use the `concatenate` method as `.` is used for concatenation in PHP and this might be a little confusing. So instead of `->beforeQuerying()->assign("hello "." world")->to(greetings)` `->beforeQuerying()->concatenate("hello ","world" )->storeAs(greetings)`
18+
* Although PHP variables starts with a `$` prefix you may choose to omit this when working with rules , eg `beforeQuering()->assign(input_name)->to(name)` and `->beforeQuering()->assign($input_name)->to($name)` will work fine with DevLess Rules.
1919
* There are times you might have to work with DevLess arrays. DevLess Rules implement [arrays as seen in PHP](http://php.net/manual/en/function.array.php) eg `["key" => "value"]`
2020

2121
### Database events

0 commit comments

Comments
 (0)