PHP引用的用法
来源:互联网 发布:mac解压软件知乎 编辑:程序博客网 时间:2024/05/16 15:51
midir (01-Mar-2009 03:44)
Here is a good magazine article (PDF format) that explains the internals of PHP's reference mechanism in detail:http://derickrethans.nl/files/phparch-php-variables-article.pdf
It should explain some of the odd behavior PHP sometimes seems to exhibit, as well as why you can't create "references to references" (unlike in C++), and why you should never attempt to use references to speed up passing of large strings or arrays (it will make no difference, or it will slow things down).
It was written for PHP 4 but it still applies. The only difference is in how PHP 5 handles objects: passing object variables by value only copies an internal pointer to the object. Objects in PHP 5 are only ever duplicated if you explicitly use the clone keyword.
源自:PHP手册 语言参考/引用的解释 评论
- PHP引用的用法
- PHP引用符&的用法介绍
- PHP引用符&的用法介绍
- PHP引用符&的用法介绍
- PHP引用符&的用法详细解析
- PHP引用符&的用法详细解析
- PHP引用符&的用法举例
- php中引用变量&的用法
- 关于PHP引用(符号&)的用法
- php中的&引用的用法解析
- PHP中foreeach的用法详解及PHP的引用
- 引用的用法
- 引用的用法
- 引用的用法
- 引用的用法
- 引用的用法
- 注意引用的用法
- 引用的用法
- .net命令使用
- ORACLE用户自动被锁解决方法
- 关于V4L2(Video for Linux Two)
- iPhone 開發教學 - 關於 Crash Report 和 dSYM 的使用
- 揭示C++中全局类变量的构造与析构顺序
- PHP引用的用法
- 分析网络连通问题要分清协议层次
- 我的链接
- 从Win Api 到 MFC
- oracle11g 空表无法exp的解决
- 浅谈是否用继承来利用
- Make beautiful maps
- inno setup 自动检测jre
- 判断一个树是不是二叉查询树 (ISBST)