This question has been answered by BobRay. See the first response.
&where=`{"isfolder":0,"hidemenu":0,"published":1,"pagetitle:LIKE":"%iphone%","pagetitle:LIKE":"%5%","pagetitle:LIKE":"%black%"}`&where = `{"isfolder":0,"hidemenu":0,"published":1,"0":{"AND:pagetitle:LIKE":"%iphone%"},"1":{"AND:pagetitle:LIKE":"%5%"},"2":{"AND:pagetitle:LIKE":"%black%"}}`You don't need the ANDs, since that's the default. This may do it:I did it earlier. Problem is when keys the same - it saw only last. So it is the problem. How could I do same keys for where query? Without XPDO ?
&where=`{"isfolder":0,"hidemenu":0,"published":1,"pagetitle:LIKE":"%iphone%","pagetitle:LIKE":"%5%","pagetitle:LIKE":"%black%"}`
You may run into trouble because three of the array keys are the same, but I don't think so.
See my corrected answer above.Thanks!!
$x = array(
'isfolder' => 0,
'hidemenu' => 0,
'published' => 1,
array('AND:pagetitle:LIKE' => '%iphone%'),
array('AND:pagetitle:LIKE' => '%5%'),
array('AND:pagetitle:LIKE' => '%black%'),
);
echo json_encode($x);