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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -