PHP——ÔËËã·ûºÍ¹Ø¼ü×Ö
ÔÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/2010/01/29/1-5/
ÒÔÏ´úÂëÊǼ¸¸ö±í´ïʽµÄÀý×Ó£º
¡¡¡¡$a = “phpdo.net”;
¡¡¡¡$sum = $var_a + $var_b;
¡¡¡¡$i++;
PHPÖÐÔËËã·ûÊDZí´ïʽÖжÔÔËËã·û½øÐвÙ×÷µÄ·ûºÅ£¬°üÀ¨ËãÊõÔËËã·û£¬×Ö·û´®ÔËËã·ûºÍÂß¼ÔËËã·ûµÈ¡£
PHPÓÐÒ»¸öÓëCÓïÑÔÀàËÆµÄ¸ÅÄî——¹Ø¼ü×Ö¡£
¹Ø¼ü×Ö¾ÍÊDZ»PHP±¾ÉíʹÓõÄÓÃÓÚʵÏÖһЩ»ù±¾²Ù×÷µÄ×Ö£¬ÕâЩ×Ö²»ÄÜÓÃÓÚÆäËüÓÃ;¡£
PHPÔÚ¶ÔÓÚ ¹Ø¼ü×ֵĵĶã±Ü±ÈÆäËûÓïÑÔÈÝÒ׺ܶ࣬ÒòΪPHPµÄ±ã±äÁ¿¶¼ÊÇÒÔ”$”¿ªÍ·¡£
PHPÖйؼü×Öͨ³£·ÖΪËÄÖÖÀàÐÍ£º
¡¡¡¡1¡¢ ÓÃÓÚÊý¾ÝÀàÐͶ¨ÒåµÄ¹Ø¼ü×Ö£¬È磺int£¬string£¬bool£¬classic£¬objectºÍarrayµÈ¡£
¡¡¡¡2¡¢ ÓÃÓÚÁ÷³Ì¿ØÖƽṹµÄ¹Ø¼ü×Ö£¬È磺if¡¢else¡¢elseif¡¢do¡¢while¡¢breakfºÍcontinueµÈ¡£
¡¡¡¡3¡¢ ÓÃÓÚÉèÖô洢ÀàÐ͵Ĺؼü×Ö£¬È磺static¡¢globalµÈ¡£
¡¡¡¡4¡¢ ÆäËûÀàÐ͵Ĺؼü×Ö¡£
Ïà¹ØÎĵµ£º
function FormatShowTime($nTotalSec)
{
//echo "total sec:" . $nTotalSec . '<br>';
$strTime = "";
//day
if ($nTotalSec > 3600 * 24)
{
$nDay = (int)($nTotalSec / (3600 * 24));
//$nDay > 0 ? $nDay : 1;
$strTime = $nDay;
$strTime .= 'Ìì';
//echo "nDay: ......
×î½üÑо¿PHPµÄһЩ¿ª·¢¼¼Êõ£¬·¢ÏÖPHPÓкܶàASPËùûÓеÄÓÅÐ㹦ÄÜ£¬¿ÉÒÔÍê³ÉһЩÒÔǰÎÞ·¨Íê³ÉµÄ¹¦ÄÜ£¬ÀýÈ綯̬Éú³ÉHTML¾²Ì¬Ò³Ã棬ÒÔ¼õÉÙ·þÎñÆ÷CPUµÄ¸ºÔØ£¬Ìá¸ßÓû§·ÃÎʵÄËÙ¶È¡£
¡¡¡¡ÎÒÃÇÖªµÀ£¬PHP¶ÁÈ¡MYSQL¶¯Ì¬ÏÔʾ£¬ÔÚ·ÃÎÊÁ¿´óµÄÇé¿öÏ£¬»áÓкܶàÐÔÄÜÎÊÌ⣬Èç¹û×âÓñðÈ˵ÄÐéÄâÖ÷»ú£¬Ôò»áÒòΪCPUÏûºÄ¹ý¶à¶ø±»ÏÞÖÆCPU£¬µ¼ÖÂÍø ......
PHP ÊÇÒ»ÖÖ´´½¨¶¯Ì¬½»»¥ÐÔÕ¾µãµÄÇ¿ÓÐÁ¦µÄ·þÎñÆ÷¶Ë½Å±¾ÓïÑÔ¡£
PHP ÊÇÃâ·ÑµÄ£¬²¢ÇÒʹÓ÷dz£¹ã·º¡£Í¬Ê±£¬¶ÔÓÚÏñ΢Èí ASP ÕâÑùµÄ¾ºÕùÕßÀ´Ëµ£¬PHP ÎÞÒÉÊÇÁíÒ»ÖÖ¸ßЧÂʵÄÑ¡Ïî¡£PHP ¼«ÆäÊʺÏÍøÕ¾¿ª·¢£¬Æä´úÂë¿ÉÒÔÖ±½ÓǶÈë HTML ´úÂë¡£
PHP Óï·¨·Ç³£ÀàËÆÓÚ Perl ºÍ C¡£PHP ³£³£´îÅä Apache (web ·þÎñÆ÷) Ò»ÆðʹÓᣲ»¹ýËüÒ²Ö§³Ö I ......
±¾ÊéµÄ×î´óÌØµãÊÇÈ«²¿Î§ÈÆPHPµÄÃæÏò¶ÔÏó˼ÏëÉè¼Æ±àд£¬Ê¹¶ÁÕß¶ÔÓÚPHP¿ª·¢¼¼Êõ»áÓÐÉî¿ÌµÄÀí½â£¬Ò»²½Ò»²½µØÒýµ¼¶ÁÕß´ÓPHPÃæÏò¹ý³ÌµÄ¿ª·¢Ä£Ê½½øÈëµ½ÃæÏò¶ÔÏóµÄ¿ª·¢Ê±´ú¡£¾ßÌåµÄÌØµã°üÀ¨ÒÔϼ¸¸ö·½Ã棺
1. ÄÚÈÝÈ«Ãæ£¬±àÅźÏÀí
±¾ÊéµÄÄÚÈݷḻ£¬º¸ÇÁËPHPµÄ¾ø´ó¶àÊý֪ʶµã£¬²¢ÔÚÄ ......
ÎÒÊÇÒ»¸ö¹¤×÷ÁËÒ»ÄêÁãÁ½¸öÔµÄPHP³ÌÐòÔ±£¬ÔÚ¹¤×÷ǰѧϰÁËLAMPÐÖµÜÁ¬ÍøÕ¾ÉϸßÂå·åÀÏʦµÄÈ«²¿PHP½ÌѧÊÓÆµ£¬¿ÉνÊÜÒæ·Ëdz£¬ÊǸßÀÏʦ½«ÎÒ´øÈëÁËPHPµÄÁìÓò£¬½ñÄêÖÕÓڵȵ½ÁËÆÚ´ýÒѾõĸßÀÏʦµÄ¡¶Ï¸ËµPHP¡·£¬ÏÈÊÇÔÚÍøÉÏ¿´µ½ÁËÑùÕ£¬½ö´ÓÑùÕÂÖоͿÉÒÔ¿´µ½×÷ÕßËù¸¶³öµÄ¼èÐÁ£¬Ò²¿ÉÒÔ¿´³ö×÷Õߵļ¼ÊõʵÁ¦£¬ÓŵãÆÄ¶à£¬ÆÈ²»¼°´ýµÄÍø¹ºÁË ......