php.js : get_resource_type() function example
Resource type name for a given resource.