DOCS Adding comma to array declaration (#5558)

This commit is contained in:
Michael James 2016-05-18 15:07:45 +01:00 committed by Daniel Hensby
parent dad7981332
commit 3870c499d6

View File

@ -19,13 +19,13 @@ An example of a `SearchFilter` in use:
:::php
// fetch any player that starts with a S
$players = Player::get()->filter(array(
'FirstName:StartsWith' => 'S'
'FirstName:StartsWith' => 'S',
'PlayerNumber:GreaterThan' => '10'
));
// to fetch any player that's name contains the letter 'z'
$players = Player::get()->filterAny(array(
'FirstName:PartialMatch' => 'z'
'FirstName:PartialMatch' => 'z',
'LastName:PartialMatch' => 'z'
));
@ -50,4 +50,4 @@ The following is a query which will return everyone whose first name starts with
## API Documentation
* [api:SearchFilter]
* [api:SearchFilter]