¹ØÓÚphpµÄÒýÓÃ
ÎĵµÊÇÕâô˵µÄ£º
PHP µÄÒýÓÃÔÊÐíÓÃÁ½¸ö±äÁ¿À´Ö¸Ïòͬһ¸öÄÚÈÝ¡£Òâ˼ÊÇ£¬µ±ÕâÑù×öʱ£º
<?php
$a
=&
$b
;
?>
ÕâÒâζ×Å $a
ºÍ $b
Ö¸ÏòÁËͬһ¸ö±äÁ¿¡£
×¢: $a
ºÍ $b
ÔÚÕâÀïÊÇÍêÈ«ÏàͬµÄ£¬Õâ²¢²»ÊÇ $a
Ö¸ÏòÁË $b
»òÕßÏà·´£¬¶øÊÇ $a
ºÍ $b
Ö¸ÏòÁËͬһ¸öµØ·½¡£
ËùÒÔ£º
<?php
$a = 1;
$b = 2;
$c = &$a;
$c = 2;
if(($c = 3) || ($b = $a)){
$a++;
$b++;
$c++;
}
printf("%d,%d,%x\n",$a,$b,$c);
if( ($c = 3) | ($b = $a)){
$a++;$b++;
}
printf("%d,%d,%x\n",$a,$b,$c);
?>
Êä³öµÄÄÚÈÝÊÇ£º5,3,5
4,4,4
Ïà¹ØÎĵµ£º
ģʽÐÞÕý·û — ½â˵ÕýÔò±í´ïʽģʽÖÐʹÓõÄÐÞÕý·û
˵Ã÷
ÏÂÃæÁгöÁ˵±Ç°ÔÚ PCRE ÖпÉÄÜʹÓõÄÐÞÕý·û¡£À¨ºÅÖÐÊÇÕâЩÐÞÕý·ûµÄÄÚ²¿ PCRE Ãû¡£ÐÞÕý·ûÖеĿոñºÍ»»Ðб»ºöÂÔ£¬ÆäËü×Ö·û»áµ¼Ö´íÎó¡£
i (PCRE_CASELESS) Èç¹ûÉ趨´ËÐÞÕý·û£¬Ä£Ê½ÖеÄ×Ö·û½«Í¬Ê±Æ¥Åä´óСд×Öĸ¡£ m£¨PCRE_MULTILINE£© ĬÈÏÇé¿öÏ£¬PCR ......
¼òÊöÌâ(50·Ö)()
1¡¢ÓÃPHP´òÓ¡³öÇ°Ò»ÌìµÄʱ¼ä¸ñʽÊÇ2006-5-10 22:21:21(2·Ö)
echo date('Y-m-d H:i:s', strtotime('-1 day'));
»òÕß
$yesterday = time() - (24 * 60 * 60);
echo 'today:'.date('Y-m-d H:i:s')."\n";
echo 'yesterday:'. date('Y-m-d H:i:s', $yesterday)."\n";
2¡¢echo(),print(),print_r()µÄÇø±ð( ......
²âÊÔ£ºhttp://www.yincode.com
Óû§£ºtest1 test2 test3
ÃÜÂ룺123456
=======================================
2010/01/12/18:54:24
=======================================
¹È¸èä¯ÀÀÆ÷ä¯ÀÀ²»Õý³£
main.js
function getData(u,m,callBack){
var ru=u+"&r="+Math.random();
$(" ......
CMSÒâΪ“ÄÚÈݹÜÀíϵͳ”£¬»ùÓÚÄ£°åµÄÓÅÐãÉè¼Æ£¬¿ÉÒÔ¼Ó¿ìÍøÕ¾¿ª·¢µÄËٶȺͼõÉÙ¿ª·¢µÄ³É±¾¡£Èç½ñ¹úÄÚPHP CMSÒѾºÜ¶à£¬ÆäÖв»·¦ÓÅÐãÃâ·Ñ¿ªÔ´Õߣ¬±¾ÎĽ«´ÓSEOµÄ½Ç¶ÈÀ´·ÖÎöPHP CMS£¬½ö×÷²Î¿¼¡£
1.phpcms
Ò»¸ö×ۺϵÄÍøÕ¾¹ÜÀíϵͳ£¬ÓÉPHP+MYSQL¹¹¼ÜÈ«Õ¾Éú³Éhtml£¬Äܹ»¿ìËÙ¸ßЧµØÓ¦ÓÃÓÚLINUXºÍWINDOWS·þÎñÆ÷ƽ̨£¬Í¬Ê ......
ÔÎijö×Ô£º http://www.hly1980.cn/archives/118.html
ÐèÒª·ÖÎöÈÕ־ʱtailÃüÁî¿ÉÊdz£ÐèÒªÓõ½µÄ£¬¿ÉϧphpÄÚ²¢Ã»ÓÐÌṩÀàËƵķ½·¨£¬ËùÒÔ×Ô¼ºÊµÏÖÁËÒ»¸ö¡£
µ÷Ó÷½Ê½Îªtail($filename, $rows)£¬Ã¿´ÎĬÈ϶ÁÈ¡1024×Ö½Ú×÷Ϊ»º³å£¬·µ»Ø×Ö·û´®Êý×飬ÎļþβµÄÐп¿Ç°£¨ÕâÀïµÄÐÐΪºÍtailÓÐËùÇø±ð£¬Èç¹ûÐèÒªÒÔÔÐò·µ»ØµÄÇë×ÔÐе÷ÓÃarr ......