note 79318 deleted from language.references by betz
| From: | betz@php.net | Date: | Tue, 20 Nov 2007 22:20:45 +0000 |
| Subject: | note 79318 deleted from language.references by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-132443@lists.php.net to get a copy of this message | ||
Note Submitter: gt at realvertex dot com
----
As warnickr at gmail dot com says you need a double pointer in C to point two variables point to the
same thing within a function... so is there any way to do this in PHP 4.x?
I.e. is it possible at all to duplicate the behavior of the C code?
int baz = 5;
int* bar;
void foo(int** var)
{
*var = &baz;
}
foo(&bar);