@@ -19,8 +19,8 @@ there's no point fetching rows you won't use. These methods are for the
1919result you already have: one loaded collection sliced different ways for
2020different parts of the page, with no extra queries.
2121
22- The ` where() ` method keeps the rows where a field matches a value. Chain it
23- to match on more than one field:
22+ ` where() ` keeps the rows where a field matches a value. Chain it to match on
23+ more than one field:
2424
2525``` php
2626use Itools\SmartArray\SmartArrayHtml;
@@ -115,10 +115,10 @@ original keys; chain `values()` when you want them renumbered.
115115
116116## Sorting: sortBy() and sort()
117117
118- The ` sortBy() ` method orders rows by a field. It returns a new sorted
119- collection and never modifies the original (PHP's own ` sort() ` modifies
120- arrays in place; SmartArray methods don't), so your result stays in query
121- order and can be sorted different ways for different spots on the page:
118+ ` sortBy() ` orders rows by a field. It returns a new sorted collection and
119+ never modifies the original (PHP's own ` sort() ` modifies arrays in place;
120+ SmartArray methods don't), so your result stays in query order and can be
121+ sorted different ways for different spots on the page:
122122
123123``` php
124124$funds = SmartArrayHtml::new([
@@ -144,10 +144,10 @@ echo $tags->sort()->implode(', '); // Apache, MySQL, PHP
144144
145145## Duplicates and Membership: unique() and contains()
146146
147- The ` unique() ` method drops repeated values from a flat list, keeping the first
148- of each, and ` contains() ` to ask whether a value is in the list at all.
149- Both treat ` 1 ` and ` '1' ` as the same value (` contains() ` follows the same
150- matching rules as ` where() ` ):
147+ ` unique() ` drops repeated values from a flat list, keeping the first of each,
148+ and ` contains() ` to ask whether a value is in the list at all. Both treat ` 1 `
149+ and ` '1' ` as the same value (` contains() ` follows the same matching rules as
150+ ` where() ` ):
151151
152152``` php
153153$tags = SmartArrayHtml::new(['PHP', 'MySQL', 'PHP', 'Apache']);
0 commit comments