PHP Resource Data Type With Examples

Php 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: