[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Datastore Client - Class Cursor (1.33.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.33.1 (latest)](/php/docs/reference/cloud-datastore/latest/Cursor)\n- [1.33.0](/php/docs/reference/cloud-datastore/1.33.0/Cursor)\n- [1.32.3](/php/docs/reference/cloud-datastore/1.32.3/Cursor)\n- [1.31.0](/php/docs/reference/cloud-datastore/1.31.0/Cursor)\n- [1.30.0](/php/docs/reference/cloud-datastore/1.30.0/Cursor)\n- [1.29.2](/php/docs/reference/cloud-datastore/1.29.2/Cursor)\n- [1.28.2](/php/docs/reference/cloud-datastore/1.28.2/Cursor)\n- [1.26.0](/php/docs/reference/cloud-datastore/1.26.0/Cursor)\n- [1.25.0](/php/docs/reference/cloud-datastore/1.25.0/Cursor)\n- [1.24.4](/php/docs/reference/cloud-datastore/1.24.4/Cursor)\n- [1.23.0](/php/docs/reference/cloud-datastore/1.23.0/Cursor)\n- [1.22.1](/php/docs/reference/cloud-datastore/1.22.1/Cursor)\n- [1.21.2](/php/docs/reference/cloud-datastore/1.21.2/Cursor)\n- [1.19.0](/php/docs/reference/cloud-datastore/1.19.0/Cursor)\n- [1.18.1](/php/docs/reference/cloud-datastore/1.18.1/Cursor)\n- [1.17.1](/php/docs/reference/cloud-datastore/1.17.1/Cursor) \nReference documentation and code samples for the Cloud Datastore Client class Cursor.\n\nRepresents a Cursor value.\n\nA cursor points to a position within a set of entities. Cloud Datastore uses\nCursors for paginating query results.\n\nExample: \n\n use Google\\Cloud\\Datastore\\DatastoreClient;\n\n $datastore = new DatastoreClient();\n $cursor = $datastore-\u003ecursor($cursorValue);\n\n $query = $datastore-\u003egqlQuery('SELECT * FROM Companies OFFSET @cursor', [\n 'bindings' =\u003e [\n 'cursor' =\u003e $cursor\n ]\n ]);\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Datastore\n\nMethods\n-------\n\n### __construct\n\n### cursor"]]