I'm one of the ignorant multitude beginning to grope their way across the threshhold of web programming. I come from another world, not computer science, and thus have a question so basic I haven't found any reference to it anywhere. It's killing me.It calls *member* function of object $q. So even if qzml is a global function it will not work, the function must be defined in the object's class definition:
In the php statement $q->qzml(); what is the symbol '->' called? What does it mean?
class Q {
function qzml() { echo 'Q::qzml() function<br>'; } }
$q=new Q;
$q->qzml();
A php script with this line in it, in which $q is an object and qzml() is a function, returns the error message "undefined function". When I remove this line, the function qzml() is recognized.
I have also come across the symbol '=>'. I assume it is not the same symbol. What is it, and what does it mean?
It is used to assign values to keys in array() construct: http://sk.php.net/manual/en/function.array.php
Any help would be greatly appreciated.
Thanks, -Paul
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php