A resource is a special type of variable that references an external resource, such as a file, socket, stream, document, or connection.
$file = fopen('/etc/passwd', 'r');
echo gettype($file);
# Out: resource
echo $file;
# Out: Resource id #2
There are different (sub-)types of resource. Y...