is_resource
Finds whether a variable is a resource
&reftitle.description;
boolis_resourcemixedvar
Finds whether the given variable is a resource.
&reftitle.parameters;
var
The variable being evaluated.
&reftitle.returnvalues;
Returns &true; if var is a resource,
&false; otherwise.
&reftitle.examples;
is_resource example
]]>
&reftitle.notes;
is_resource is not a strict type-checking method: it will return &false; if var is a resource variable that has been closed.
&reftitle.seealso;
The resource-type documentationget_resource_type