Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

dz̸php²å¼þÀ©Õ¹

 ×î½üÍ»·¢ÆæÏ룬.net¶¼ÓÐÃüÃû¿Õ¼ä»úÖÆ£º
       using System.data;.......,
  ÎÒÃÇÔÚ¿ª·¢phpʱ£¬ÊÇ·ñÒ²ÄÜʵÏÖÕâÖÖ»úÖÆÄØ£¬ÎÒÃÇÖªµÀÏÖÔÚµÄphp v5.2.9»¹²»Ö§³ÖÃüÃû¿Õ¼äµÄ¸ÅÄ
  µ«Ïà¹Øphp v5.3µÄ ×ÊÁϱíÃ÷ ÒѾ­Ê¹ÓÃÃüÃû¿Õ¼äµÄ¸ÅÄî £º
        namespace Foo
 ÎÒÃÇ¿ÉÒÔ°ÑphpµÄÃüÃû¿Õ¼ä¸ÄдΪ
  using  ÕâÖÖ ÐÎʽÂð ^_^ ÕâÊǺó»°........
  ÔÚ²âÊԵĹý³ÌÖб¾ÈË×öÁËÕâÑùÒ»¸ö²âÊÔ Ê¹ÓÃphp ½øÐÐÀ©Õ¹±àÒëµÄdll Îļþ£¨º¯Êý self_concat£©  ͬÑùÊÊÓÃphp дһ¸ö»¹ÊÇ(self_concatx())
php ²¿·Ö´úÂëÈçÏ£º
<?php
function self_concat($str,$n){
 $result=null;
 while($n--){
   $result.=$str;
 }
 return $result;
}
function get_microtime(){
 list($usec, $sec) = explode(' ', microtime());
 return ((float)$usec + (float)$sec);
}
$start=get_microtime();
echo self_concat("phpinfo()",200000);
echo get_microtime()-$start;
?>
copy phpinfo ×Ö·û´® 20W ´Ë ×ܺÄʱ¼ä£º 0.14761400222778
ʹÓà phpÀ©Õ¹ µ÷Óà self_concatx("phpinfo()",200000) ×ܺÄʱ¼ä£º0.012831926345825
ƽ¾ùʹÓÃËÙ¶ÈÒª¸ß 11.50 ±¶£¬
 Í¬Ê±»¹×öÁËÒ»¸öСÊý¾ÝÁ¿²âÊÔ£¬·¢ÏÖ Êý¾ÝÁ¿Ô½Ð¡ ʹÓÃʱ¼äÔ½¶Ì ƽ¾ùʱ¼äÔÚ 10 ±¶ÒÔÉÏ£¡


Ïà¹ØÎĵµ£º

ʵÀýÏê½âPHP serializeÓëJSON½âÎö

JSON
»ù
ÓÚJavaScript Programming Language, Standard ECMA-262 3rd Edition -
December 1999µÄÒ»¸ö×Ó¼¯¡£JSON²ÉÓÃÍêÈ«¶ÀÁ¢ÓÚÓïÑÔµÄÎı¾¸ñʽ£¬µ«ÊÇҲʹÓÃÁËÀàËÆÓÚCÓïÑÔ¼Ò×åµÄϰ¹ß£¨°üÀ¨C, C++, C#, Java
, JavaScript, Perl, PythonµÈ£©¡£ÕâÐ©ÌØÐÔʹJSON³ÉΪÀíÏëµÄÊý¾Ý½»»»ÓïÑÔ¡£
JSON½¨¹¹ÓÚÁ½Öֽṹ£º
“Ãû
³ ......

ÓйØphp·ûºÅµÄ³õ²½×ܽá

PhpµÄ½Å±¾¿éÓйصķûºÅ£º
1,XML·ç¸ñ£ºÅ£È˼«¶ÈÍÆ¼öµÄÓ÷¨<?php …?>¡£
2,¼ò¶Ì·ç¸ñ:<?...?>×î¼òµ¥£¬×ñÑ­SGML(±ê׼ͨÓñê¼ÇÓïÑÔ)´¦Àí˵Ã÷µÄ·ç¸ñ¡£ÒªÏëÓÃËü£¬Ò»¶¨Òª¿ªÆôshort_open_tagÑ¡Ï»òÕ߯ôÓö̱ê¼ÇµÄÑ¡Ïî±àÒëphp¡£(³õѧÕß¿´ÕÅÀÏʦÊÓÆµÊ±£¬¾ÍÈÝÒ×·¸Ã»ÓпªÆô¶Ì±ê¼ÇµÄ´íÎó¡£¹úÍâÅ£È˲»ÍƼö£¬µ«ÏÖÔÚ¹ú ......

PHPÎļþ°üº¬Â©¶´Ô­Àí·ÖÎöºÍÀûÓ÷½·¨


ÕªÒª£ºÒ»¡¢Éæ¼°µ½µÄΣÏÕº¯Êý¡²include(),require()ºÍinclude_once(),require_once()¡³ include()&&require()Óï¾ä:°üÀ¨²¢ÔËÐÐÖ¸¶¨Îļþ¡£ÕâÁ½Öֽṹ³ýÁËÔÚÈçºÎ´¦Àíʧ°ÜÖ®ÍâÍêȫһÑù¡£include()²úÉúÒ»¸ö¾¯¸æ¶ørequire()Ôòµ¼ÖÂÒ»¸öÖÂÃü´íÎó¡£»»¾ä»°Ëµ£¬Èç¹ûÄãÏëÔÚÓöµ½¶ªÊ§Îļþʱֹͣ´¦ÀíÒ³Ãæ¾ÍÓÃrequire()¡£include() ......

PHPѧϰ

 Ç°¼¸ÌìÔÚѧϰPHPµÄʱºò×öÁËÒ»¸ö¼òµ¥µÄÊý¾ÝÔöɾ¸ÄµÄ³ÌÐò£¬ÓÉÓÚ×Ô¼ºÊǵÚÒ»´Î½Ó´¥PHPËùÒÔÔÚÐí¶àµØ·½×öµÄ²»µ½Î»£¬¸Ð¾õºÜǣǿ£¬µ«ÊDZϾ¹ÊÇ»¨ÁËʱ¼äµÄ£¬ËùÒÔÏÖÔÚÌù³öÀ´¡£
1.Íê³ÉÔöɾ²é¸ÄµÄÖ÷Ò³Ãæ£ºconnsql.php
 <h1>Data Insert Delete Update</h1>
<?php
    //»ñµÃÊý¾Ý¿âÁ¬½Ó
& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ