note 118601 added to language.references.arent

From: Date: Wed, 06 Jan 2016 12:39:51 +0000
Subject: note 118601 added to language.references.arent
Groups: php.notes 
Request: Send a blank email to php-notes+get-204604@lists.php.net to get a copy of this message
It is possible to do something a bit similar to pointers (like in C), where something like array(&$a) is a pointer to a variable called $a; this value can then be passed around as a value; it is not a variable or an alias or whatever but is an actual value. You can then use codes such as these to read/write through pointers: <?php function get($x) { return $x[0]; } function put($x,$y) { $x[0]=$y; } ?> ---- Server IP: 72.52.91.14 Probable Submitter: 24.207.56.9 ---- Manual Page -- http://php.net/manual/en/language.references.arent.php Edit -- https://master.php.net/note/edit/118601 Del: integrated -- https://master.php.net/note/delete/118601/integrated Del: useless -- https://master.php.net/note/delete/118601/useless Del: bad code -- https://master.php.net/note/delete/118601/bad+code Del: spam -- https://master.php.net/note/delete/118601/spam Del: non-english -- https://master.php.net/note/delete/118601/non-english Del: in docs -- https://master.php.net/note/delete/118601/in+docs Del: other reasons-- https://master.php.net/note/delete/118601 Reject -- https://master.php.net/note/reject/118601 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#204604) next »