I am new, brand new. I have following questions which can't searched from google, since they are signs.
I see this: function _stripslashes_rcurs($variable, $top=true)
What is mean $top=true here? $top is a parameter, why it immediately becomes true?
I see this: $this->uid = null;
What is mean -> here? Does $this have same meaning as "this" in java?
I see this:
$this->fields = array('username' => '',
'password' => '',
'emailAddr' => '',
'isActive' => false
);
What is mean => here?
Many thanks.
Very very stupid questions
Moderator: General Moderators
-
registereduser
- Forum Newbie
- Posts: 21
- Joined: Wed Nov 04, 2009 2:09 pm
Re: Very very stupid questions
It means $top is optional, and if you don't provide it the default value is true.registereduser wrote:I see this: function _stripslashes_rcurs($variable, $top=true)
What is mean $top=true here? $top is a parameter, why it immediately becomes true?
Code: Select all
_stripslashes_rcurs($a); // $top = true
_stripslashes_rcurs($a, $b); // $top = $bYes, they mean the same thing. With that in mind, guess what -> is for.registereduser wrote:I see this: $this->uid = null;
What is mean -> here? Does $this have same meaning as "this" in java?
$this->fields is an associative array, sometimes called a hash or dictionary.registereduser wrote:I see this:
$this->fields = array('username' => '',
'password' => '',
'emailAddr' => '',
'isActive' => false
);
What is mean => here?
What's on the left of the => is the key, what's on the right is the value. If you don't give a key then it will be a number that started counting at 0. More information here.
If Google can't help, the PHP manual probably can.
-
registereduser
- Forum Newbie
- Posts: 21
- Joined: Wed Nov 04, 2009 2:09 pm
Re: Very very stupid questions
Thank you very much tasairis! All set now.
Indeed, I have tried the php manual, but it does not enable sign search too.
Indeed, I have tried the php manual, but it does not enable sign search too.
Re: Very very stupid questions
To find symbols in the manual, see the List of Parser Tokens.
Edit: This post was recovered from search engine cache.
Edit: This post was recovered from search engine cache.
Last edited by McInfo on Thu Jun 17, 2010 1:39 pm, edited 1 time in total.
Re: Very very stupid questions
nice mcinfo
-
registereduser
- Forum Newbie
- Posts: 21
- Joined: Wed Nov 04, 2009 2:09 pm
Re: Very very stupid questions
Thank you so much, McInfo.McInfo wrote:To find symbols in the manual, see the List of Parser Tokens.