PubNub 3.x for PHP will encounter End Of Life (EOL) Aug 1st, 2018. All users currently on 3.x should begin migrating to 4.x. The 3.x SDK will continue to work. We will no longer support it and if you run into an issue, we will request that you upgrade to the latest version before solving the issue.
If you have questions about the PubNub for PHP SDK, please contact us at email@example.com.
The timetoken is constructed using the following algorithm:
Example of creating a timetoken for a specific time & date
Timeyou can use the following method(s) in PHP SDK
- This function doesn't have any parameters.
$time = $pubnub->time(); print_r($time . "\n");
time()function returns a string timetoken in the following format: