note 102177 added to language.references.spot
| From: | phpdoc-php at lorgenetwork dot com | Date: | Tue, 01 Feb 2011 06:29:31 +0000 |
| Subject: | note 102177 added to language.references.spot | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-176549@lists.php.net to get a copy of this message | ||
Here is a simple function which checks for reference, and works with objects by the test I did.
<?php
function is_reference_to(&$a, &$b)
{
if($a !== $b) return false;
$temp = $a;
$checkval = ($a === null)? "" : null;
$a = $checkval;
if($b === $checkval)
{
$a = $temp;
return true;
}
else
{
$a = $temp;
return false;
}
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 150.101.127.182
----
Manual Page -- http://www.php.net/manual/en/language.references.spot.php
Edit -- https://master.php.net/note/edit/102177
Del: integrated -- https://master.php.net/note/delete/102177/integrated
Del: useless -- https://master.php.net/note/delete/102177/useless
Del: bad code -- https://master.php.net/note/delete/102177/bad+code
Del: spam -- https://master.php.net/note/delete/102177/spam
Del: non-english -- https://master.php.net/note/delete/102177/non-english
Del: in docs -- https://master.php.net/note/delete/102177/in+docs
Del: other reasons-- https://master.php.net/note/delete/102177
Reject -- https://master.php.net/note/reject/102177
Search -- https://master.php.net/manage/user-notes.php