note 97569 deleted from language.references.arent by danbrown
| From: | danbrown@php.net | Date: | Mon, 26 Apr 2010 18:19:50 +0000 |
| Subject: | note 97569 deleted from language.references.arent by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168671@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
<?php
// Codes for making a pointer in PHP
function ptr(&$ref) {
return (array(&$ref));
}
function deref($ptr) {
return ($ptr[0]);
}
function assign($ptr,$val) {
return ($ptr[0]=$val);
}