Skip to content

define filters in PHP instead of JS #36

Answered by abbasudo
olivierbaudouin asked this question in Q&A
Discussion options

You must be logged in to vote

For this task, you can use nested arrays

$filters = [
      '$or' => [
          'title' => ['$eq' => 'good post'],
          'id'    => ['$eq' => '1']
       ]
];

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@olivierbaudouin
Comment options

@abbasudo
Comment options

Answer selected by abbasudo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants