More PHP Internals: References
Wednesday, September 7th, 2011By request, a quick post on using PHP references in extensions. To start, here’s an example of references in PHP we’ll be translating into C: <?php // just for displaying output function display($x) { echo "x is $x\n"; } // pass in an argument by making a copy of it function not_by_ref($arg) { [...]
Subscribe