This question already has answers here:
Reference Guide: What does this symbol mean in PHP? (PHP Syntax)
(24 answers)
Closed 6 years ago.
$channel =<<<_XML_;
what is meaning of above statement ?
Is XML predefined variable ?
What is the meaning of <<<
This syntax is called a heredoc. It's very convenient to enter long (usually multiline) strings without having to mess around with escaping etc.
Related
This question already has answers here:
# symbol before php function [duplicate]
(3 answers)
What is the use of the # symbol in PHP?
(11 answers)
Reference Guide: What does this symbol mean in PHP? (PHP Syntax)
(24 answers)
Closed 4 years ago.
can you please help i just want to know why we use #in_array function.
$name = array("ravi", "ram", "rani", 87);
if (in_array("ravi", $name, TRUE)){
}
if (#in_array("ravi", $name, TRUE)){
}
The "#" symbol turn off the errors. It is not a good idea to use it.
PHP Error Control Operators
PHP supports one error control operator:
the at sign (#
http://php.net/manual/en/language.operators.errorcontrol.php
This question already has answers here:
What does ${ } mean in PHP syntax?
(4 answers)
When to wrap curly braces around a variable
(3 answers)
Closed 4 years ago.
I have seen some code in PHP use this expression ${variable}, so; what is this? and when to use it? and what is the difference between ${var} and {$var} ?
This question already has answers here:
What is the use of the # symbol in PHP?
(11 answers)
Closed 7 years ago.
$block_header = #unpack('Sc_size/Su_size/Lchecksum', fread($this->fp, 8));
What does this mean ?
PHP Error Control Operators.
it avoids showing the error returned by the function. more info in the link:
http://www.php.net/manual/en/language.operators.errorcontrol.php
This question already has answers here:
Reference Guide: What does this symbol mean in PHP? (PHP Syntax)
(24 answers)
What does "->" mean/refer to in PHP? [duplicate]
(12 answers)
Closed 9 years ago.
$title = l(
$comment->subject,
comment_node_url(),
array('fragment' => "comment-$comment->cid")
);
Ok, so $title is the l() function, and from what I'm reading, I am passing the $comment->subject argument to l() - is that correct?
What does $comment->subject mean? I'm looking all over and not understanding what it means. Is it an operator of some sort?
Sorry if this is a simple question - I just can't find the answer anywhere.
It's just an operate that indicates that "subject" is a property of $comment. You can read a bit more on the PHP manual.
This question already has answers here:
PHP "&" operator
(8 answers)
Reference Guide: What does this symbol mean in PHP? (PHP Syntax)
(24 answers)
Closed 10 years ago.
I got this piece of code which I'm analysing and it have this condition
if(($hint&self::HINT_WRITE && $hint&self::HINT_NOWRITE) || ($hint&self::HINT_READ && $hint&self::HINT_NOREAD))
{
some code ..
}
Any Idea what '&' in '$variable&self::CONSTANT' means?