Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function isRef(&$a, &$b) {
- static $c;
- if (!$c) $c = new stdClass();
- $aa = $a;
- $a = $c;
- if ($a === $b) {
- $a = $aa;
- return true;
- } else {
- $a = $aa;
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement