$c = mysql_connect(); echo get_resource_type($c) ."\n"; / / prints: mysql link $fp = fopen("foo" ,"w"); echo get_resource_type($fp) ."\n"; / / prints: file $doc = new_xmldoc("1.0"); echo get_resource_type($doc - doc) ."\n"; / / prints: domxml document
?php $c = mysql_connect(); echo get_resource_type($c) ."\n"; / / affiche: mysql link / / (lien mysql) $fp = fopen("foo" ,"w"); echo get_resource_type($fp) ."\n"; / / affiche: file / / (fichier) $doc = new_xmldoc("1.0"); echo get_resource_type($doc - doc) ."\n"; / / affiche: domxml document / / (document domxml)?