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
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:
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?
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Reference - What does this symbol mean in PHP?
What's the difference between calling #header() and header() function in PHP ?
# suppresses errors:
http://php.net/manual/en/language.operators.errorcontrol.php
generally, you don't want to do that
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
What does it mean to start a PHP function with an ampersand?
hi
Why is it that some php functions have a '&' in their signature for example
function &getData()
It returns a reference to a variable.
This question already has answers here:
What does it mean to start a PHP function with an ampersand?
(3 answers)
Closed 7 years ago.
I know & is used to create references.
But I wonder what having a & before a function name means:
function &DB($params = '', $active_record_override = FALSE) { // code }
It returns the result by reference. See the manual entry for it here.