Well, for me the word Resource (resource) has a very clear meaning and it is somewhat difficult to explain the meaning of a word that is self-explanatory.
Perhaps with analogy it becomes clearer what resources are: If you think that a certain thing can provide means or directives to get/get to something else, so just think that these means are nothing more than resources.
So in PHP it really makes sense that a connection link is a resource, a stream/channel of an FTP connection, a file handler created by fopen()
or a connection socket. All of them are "points" from which other actions are operated to arrive at something/result.
Resource types were created in the PHP 3
to compensate for the lack of objects, so naturally you could (in fact you can) think that they are analogous to objects where functions returning resources
would be object constructors and functions manipulating through the resource would be as methods of these objects.
Still, I don’t understand why the manual refers to itself as a "type of variable" when it’s actually just a special primitive type, but maybe it’s just to make explicit that the variable "remembers" a reference.
rray, a Resource can be a file in a fopen() function for example?
– DiChrist
@Diegodesouzasilva, a Source cannot be manipulated directly, only through functions. Already noticed qtResources are passed to Mysqli in procedural mode?
– rray
No, you could give me an example?
– DiChrist