41 ¹ø ±ÛÀÇ ´äÀå±Û: RE: [PHP] associative array parsing test |
±Û¾´ÀÌ: »êÀÌ
[ȨÆäÀÌÁö]
|
±Û¾´³¯: 2003³â 10¿ù 05ÀÏ 10:10:24 ÀÏ(¿ÀÀü) |
Á¶È¸: 3299 |
function foo()
{
$foo = array();
$foo['bar'] = 'foobar';
return {TYPE}; // one of 5 {TYPE}
}
result of 100,000 excute : seconds
{TYPE} : one of this :
1. return 'some '.$foo['bar'].' test'; // 1.8925 // winner
2. return "some $foo[bar] test"; // 2.8418
return "some {$foo['bar']} test"; // 2.8423
3. return 'some '.$foo[bar].' test'; // 3.2916
4. return "some {$foo[bar]} test"; // 4.5538
|
ÀÌÀü±Û : Re: [PHP] array_values() VS sort()
´ÙÀ½±Û : Re: [PHP] use array() references
|
from 61.254.75.40
JS(Redhands)Board 0.4 +@
|