Re: [PHP] awful newbie question

2003-10-13 Thread Marek Kilimajer
It is called Paamayim Nekudotayim ;) and is explaned here: 
http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php

Paul Freedman wrote:
Marek -
Thanks for your help.
Unfortunately, my ignorance is more extensive than I had believed. In your
reply, ... echo 'Q::qzml() ... what is the signifigance of '::'? I've only
thought of such a figure as expressing a ratio.
- Paul
- Original Message - 
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "Paul Freedman" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, October 12, 2003 1:09 PM
Subject: Re: [PHP] awful newbie question



Paul Freedman wrote:

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.
In the php statement
$q->qzml();
what is the symbol '->' called? What does it mean?
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:
class Q {

function qzml() {
echo 'Q::qzml() function';
}
}
$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






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] awful newbie question

2003-10-12 Thread Eugene Lee
On Sun, Oct 12, 2003 at 07:09:32PM +0200, Marek Kilimajer wrote:
: 
: Paul Freedman wrote:
: >
: >In the php statement
: >$q->qzml();
: >what is the symbol '->' called? What does it mean?
:
: It calls *member* function of object $q.
[...]
: >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

But as for the first question, I don't know if '->' or '=>' have any
specific *names* in PHP.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] awful newbie question

2003-10-12 Thread Marek Kilimajer
Paul Freedman wrote:
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.

In the php statement
$q->qzml();
what is the symbol '->' called? What does it mean?
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:

class Q {

function qzml() {
echo 'Q::qzml() function';
}   
}
$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


[PHP] awful newbie question

2003-10-12 Thread Paul Freedman
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.

In the php statement
$q->qzml();
what is the symbol '->' called? What does it mean?

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?

Any help would be greatly appreciated.

Thanks,
-Paul