Reference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class Int64.
Represents a 64 bit integer. This can be useful when working on a 32 bit
platform.
Example:
$int64 = new Int64('9223372036854775807');
Namespace
Google \ Cloud \ Core
Methods
__construct
Parameter
Name
Description
value
string
The 64 bit integer value in string format.
get
Get the value.
Example:
$value = $int64->get();
Returns
Type
Description
string
__toString
Provides a convenient way to access the value.
jsonSerialize
Implement JsonSerializable by returning the 64 bit integer as a string
[[["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,["# Google Cloud PHP shared dependency, providing functionality useful to all components. Client - Class Int64 (1.64.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.64.2 (latest)](/php/docs/reference/cloud-core/latest/Int64)\n- [1.64.1](/php/docs/reference/cloud-core/1.64.1/Int64)\n- [1.63.0](/php/docs/reference/cloud-core/1.63.0/Int64)\n- [1.62.3](/php/docs/reference/cloud-core/1.62.3/Int64)\n- [1.61.0](/php/docs/reference/cloud-core/1.61.0/Int64)\n- [1.60.1](/php/docs/reference/cloud-core/1.60.1/Int64)\n- [1.59.1](/php/docs/reference/cloud-core/1.59.1/Int64)\n- [1.58.2](/php/docs/reference/cloud-core/1.58.2/Int64)\n- [1.53.0](/php/docs/reference/cloud-core/1.53.0/Int64)\n- [1.52.11](/php/docs/reference/cloud-core/1.52.11/Int64)\n- [1.51.2](/php/docs/reference/cloud-core/1.51.2/Int64)\n- [1.50.0](/php/docs/reference/cloud-core/1.50.0/Int64)\n- [1.49.3](/php/docs/reference/cloud-core/1.49.3/Int64)\n- [1.48.1](/php/docs/reference/cloud-core/1.48.1/Int64) \nReference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class Int64.\n\nRepresents a 64 bit integer. This can be useful when working on a 32 bit\nplatform.\n\nExample: \n\n $int64 = new Int64('9223372036854775807');\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Core\n\nMethods\n-------\n\n### __construct\n\n### get\n\nGet the value.\n\nExample: \n\n $value = $int64-\u003eget();\n\n### __toString\n\nProvides a convenient way to access the value.\n\n### jsonSerialize\n\nImplement JsonSerializable by returning the 64 bit integer as a string"]]