Jump to content

First argument for PHP fread()


alex4orly

Recommended Posts

Hello all,

 

I am coming to learn PHP with a C/C++ background and noticed something which I think is incorrect:

 

$myfile = fopen(); retuens a handle to the file.

 

In the explanation for fread() however it is used and the explanation is that it is the name of the file as the 1st argument.

This in my opinion is an incorrect explanation, it is actually the HANDLE.

 

The majority of the PHP syntax however is mostly clear to me.

 

Thanks to those who put the effort, to help us new comers...

 

Cheers

Alex

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...