resources - How to get instance ID with PHP -
I see a way to get the example ID of a given object / resource with PHP, in the same way var_dump () Does:
var_dump (curl_init ()); // Resource # 1 type curl var_dump (curl_init ()); / Resource # 2 Type Curl
How do I get the frequency calculation without calling var_dump ()? Is this possible?
To get the resource ID, change it to an integer:
$ Resource = curl_init (); Var_dump ($ resource); Var_dump (intval ($ resource));
Comments
Post a Comment