Closed dplewis closed 5 years ago
See https://github.com/parse-community/Parse-SDK-JS/pull/868
$query->withCount(); $response = $query->find(); $response['count'] // total number of objects despite limit / skip $response['results'] // Array of objects
As of PHP 7.1 you can use Array Destructuring like es6
['count' => $count, 'results' => $results] = $query->find(); $count // total $results // array
See https://github.com/parse-community/Parse-SDK-JS/pull/868
As of PHP 7.1 you can use Array Destructuring like es6