using php on couch: php-on-couch
I’m trying to pass in a startkey and endkey, this works:
$client->startkey( array( $val1, $val2) ) );
$client->endkey( array( $val1 , $val2) ) );
however this does not work:
$client->startkey( array( $val1) ) );
$client->endkey( array( $val1 , '{}') ) );
I think PHP is having trouble with the empty object. Any ideas?
Is it possible that the string
'{}'is not sent as an object, but instead as a string? You want to send (formatted for clarity)But maybe PHP on Couch is requesting
If that is the case (and I am guessing a bit), what about using an array (object) as the second element?
Does that work?