How to the resource type in PHP

2 Answers

0 votes
$con = mysql_connect();
echo get_resource_type($con);


/*
run:

mysql link 

*/

 



answered Jun 22, 2016 by avibootz
0 votes
$fp = fopen("d:\\data.txt", "w");
echo get_resource_type($fp);


/*
run:

stream 

*/

 



answered Jun 22, 2016 by avibootz

Related questions

2 answers 230 views
1 answer 249 views
1 answer 256 views
2 answers 316 views
1 answer 254 views
...