Anyone tell me about $fh. f mean file and h mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Anyone tell me about $fh. f mean file and h mean?

12th Aug 2016, 4:03 PM
Ateeq UR Rehman
Ateeq UR Rehman - avatar
3 Answers
+ 2
$fh means file handler like STDIN or STDOUT
12th Aug 2016, 4:19 PM
francis
+ 1
what comes from fopen() is normally assigned to $fn. Now you'll use this file handler to operate on the file. And don't forget to close it afterwards.
12th Aug 2016, 7:09 PM
Florianer
0
$fh does not mean anything. Its a variable used to handle fopen() function. you can use something like $myFile or anything instead of $fh.
18th Aug 2016, 12:55 PM
Bekir Uzun
Bekir Uzun - avatar