PHP Resource Data Type With Examples

aimtocode

Resource Data Type:

A resource is a special variable, holding a reference to an external resource, It typically hold special handlers to opened files and database connections.


Example:




Result:


  resource(2) of type (stream) 	


Read More:

aimtocode