加载中
htmlspecialchars() improvements in PHP 5.4

There has been lots of buzz about many of the new features in PHP 5.4, like the traits support, the short array syntax and all those other syntax improvements. But one set of ch...

2013/03/12 10:12
86
JsonSerializable

JSON is the modern data format used in "AJAX" applications. As the leading language for the Web PHP course has support for handling JSON data: You can pass any data to json_enco...

2013/03/11 17:17
94
B2C开源网店系统Yuncart

网站:http://www.yuncart.com demo:http://demo.yuncart.com 帮助:http://help.yuncart.com

php运算符opcode 3

== is_equal_function -> compare_function != is_not_equal_function -> compare_function === is_identical_function !== is_not_identical_function -> is_identical_function >= ,<= is_...

2012/08/31 16:16
24
php运算符opcode 2

2 . ===(调用is_identical_function),!==(调用is_not_identical_function -> is_identical_function ) <?php $i = 1; $j = 1.0; echo $i === $j; //opcode line # * op ...

2012/08/31 16:07
68
php运算符opcode 1

php版本 PHP 5.3.14 1. ==(调用is_equal_function->compare_function ),!=(调用is_not_equal_function->compare_function) <?php $i = 1; $j = 1.0; echo $i == $j; //opcode line # * ...

2012/08/31 15:48
168
Try-Catch-Finally in PHP

As of PHP 5.3 web developers can use a wonderful feature of the language, the __invoke() magic method. This enables PHP to provide the Closure class and based on it the ability ...

2012/08/29 11:16
864
php 函数 总结及建议

通过对函数实现的原理分析和性能测试,我们总结出以下一些结论: PHP的函数调用开销相对较大。 函数相关信息保存在一个大的hash_table中,每次调用时通过函数名在hash表中查找,因此函数名长...

2012/08/23 10:54
145
常用php函数实现及介绍

count count是我们经常用到的一个函数,其功能是返回一个数组的长度。 count这个函数,其复杂度是多少呢?一种常见的说法是count函数会遍历整个数组然后求出元素个数,因此复杂度是O(n)。那实...

2012/08/23 10:52
134
php常量

常量的内部结构 Zend/zend_constants.h typedef struct _zend_constant {    zval value; /* zval结构,PHP内部变量的存储结构 */    int flags; /* 常量的标记如 CONST_PERSISTENT |...

2012/08/21 00:28
82
PHP的Realpath Cache

PHP的缓存有很多种,包括输出缓冲(ob系列函数),opcode缓存(APC,eAccelerator,XCache等扩展实现),这些大家已经很熟悉了,接下来介绍一下一个不太被人注意的PHP缓存机制:realpath_cache。 ...

2012/08/15 00:20
414
php_core_globals

struct _php_core_globals { zend_bool magic_quotes_gpc; // 是否对输入的GET/POST/Cookie数据使用自动字符串转义。 zend_bool magic_quotes_runtime; //是否对运行时从外...

2012/08/14 22:50
108
zend 字符串查找

#define php_memnstr zend_memnstr //在haystack中查找needle,如果不存在返回null,如果存在,返回指向haystack中needle头字符的指针 //needle_len needle指向的字符串长度 //end haysta...

2012/08/10 18:16
164
PHP SAPI CLI

sapi_module_struct.startup static int php_cli_startup(sapi_module_struct *sapi_module) /* {{{ */ { if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { return F...

2012/08/07 19:24
57
php SAPI struct 代码

typedef struct _sapi_module_struct sapi_module_struct; struct _sapi_module_struct { char *name; char *pretty_name; int (*startup)(struct _sapi_module_struct *sapi_m...

2012/08/07 00:54
166
php_function 宏替换

#define PHP_FUNCTION ZEND_FUNCTION #define ZEND_FUNCTION(name) ZEND_NAMED_FUNCTION( ZEND_FN(name) ) #define ZEND_FN(name) zif_##name #define ZEND_NAMED_FUNCTION(name) void name(...

2012/08/06 11:11
382
c内存对齐--影响php变量占用的内存

当在C中定义了一个结构类型时,它的大小是否等于各字段(field)大小之和?编译器将如何在内存中放置这些字段?ANSI C对结构体的内存布局有什么要求?而我们的程序又能否依赖这种布局?这些问题...

2012/08/05 13:09
481
How big are PHP arrays (and values) really?

In this post I want to investigate the memory usage of PHP arrays (and values in general) using the following script as an example, which creates 100000 unique integer array ele...

2012/08/05 02:53
52
网址

1. http://nikic.github.com/ 2. http://lxr.php.net 3. http://blog.ircmaxell.com 4. http://athos.blogs.balabit.com/ 5. http://alokmenghrajani.github.com/wtf/php.html 6 http://phps...

2012/08/04 16:30
42
Supercolliding a PHP array

Did you know that inserting 2^16 = 65536 specially crafted values into a normal PHP array can take 30 seconds? Normally this would take only 0.01 seconds. This is the code to re...

2012/08/04 16:12
49

没有更多内容

加载失败,请刷新页面

返回顶部
顶部