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

php——Êý¾ÝÀàÐÍ£¨1£©

Ô­ÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/2010/02/03/1-10/
ÓëÆäËû±à³ÌÓïÑÔ²»Í¬µÄÊÇ£ºPHPµÄÊý¾ÝÀàÐͲ»ÊÇÓɳÌÐòÔ±ÔÚ¶¨Òå±äÁ¿µÄʱºò¾ö¶¨µÄ£¬¶øÊÇÓÉPHPÔÚ³ÌÐòÔËÐйý³ÌÖж¨Òå¡£
PHP¹²Ö§³Ö8ÖÖÊý¾ÝÀàÐÍ£ºÕûÐÍ£¨integer£©¡¢¸¡µãÐÍ£¨float£©¡¢×Ö·û´®ÐÍ£¨string£©ºÍ²¼¶ûÐÍ£¨Boolean£©ËÄÖÖ±êÁ¿ÀàÐÍ£¬Êý×飨array£©ºÍ¶ÔÏó£¨object£©Á½ÖֺϳÉÀàÐÍ£¬¿ÕÖµ£¨null£©ºÍ×ÊÔ´£¨resource£©Á½ÖÖÌØÊâÀàÐÍ¡£
ÕûÐÍ£¨integer£©
רÃÅÓÃÀ´±íʾÕûÊý£¬¿ÉÓÃÊ®½øÖÆ¡¢°Ë½øÖƺÍÊ®Áù½øÖƱíʾ¡£
Ê®½øÖƾÍÊÇÈÕ³£Ê¹ÓõÄÊý×Ö£»°Ë½øÖÆ£¬Êý×ÖÇ°±ØÐë¼ÓÉÏ‘0’£»Ê®Áù½øÖÆ£¬Êý×ÖÇ°±ØÐë¼Ó‘0x’¡£
ÁÐ×Ó£º
¡¡<?php
¡¡¡¡$php = 100;  //Ò»¸öÊ®½øÖÆÕûÊý
¡¡¡¡$php = -100;  //Ò»¸öÊ®½øÖƸºÊý
¡¡¡¡$php = 0666;  //Ò»¸ö°Ë½øÖÆÕûÊý
¡¡¡¡$php = 0×64;  //Ò»¸öÊ®Áù½øÖÆÕûÊý
¡¡?>
×¢Ò⣺ÓëÆäËûÓïÑÔ²»Í¬µÄÊÇ£¬PHP²»Ö§³ÖÎÞ·ûºÅÊý¡£
 ¸¡µãÐÍ£¨float£©
ÓÃÀ´±íʾ´øÓÐСÊýµãµÄÊýµÄÒ»ÖÖÀàÐÍ¡£
¸¡µãÊýµÄ±íʾ·½·¨£º
 ÓÃÆÕͨµÄ´øÓÐСÊýµãµÄÊýÀ´±íʾ£¨È磬1.2£©£»
 ÓÿÆѧ¼ÆÊý·¨±íʾ£¨È磬1.0E3;2.1e-6£©,×¢ÒâÐèÒªÓÃE»òÕße±íʾָÊýÃÝ¡£
Àý×Ó£º
<?php
¡¡¡¡$php = 1.261;  //ÆÕͨµÄ´øÓÐСÊýµãµÄÊý
¡¡¡¡$php = 1.0E3;  //¿Æѧ¼ÆÊý·¨±íʾ,E
¡¡¡¡$php = 7e-6;  //ÁíÒ»ÖÖ¿Æѧ¼ÆÊý·¨±íʾ
¡¡?>
×¢Ò⣺ÓÉÔÚÁ½ÖÖÇé¿öÏÂPHP»á½«Ö¸¶¨µÄÕûÊý½âÊÍΪ¸¡µãÊý£º
 Ö¸¶¨µÄÊý³¬¹ýÁËÕûÐ͵ķ¶Î§£¬Ò²¾ÍÊdz¬¹ýÁË14λÊý×ֵľ«¶È£¬·¢ÉúÒç³öʱ£»
 ¶¨µÄÊýÔÚСÊýµãµÄÓÒ²àÓÐÈκÎÊý½«±»ÊÓΪ¸¡µãÊý¡£ 
×Ö·û´®ÐÍ£¨string£©
ÓÃÀ´±íʾһ¸ö×Ö·û´®£¨Ò»Á¬´®µÄ×Ö·û¹¹³ÉµÄÒ»¸ö¼¯ºÏ£©¡£
×Ö·û´®ÐÍ¿ÉÒÔÓÃÈýÖÖ·½·¨¶¨Ò壺µ¥ÒýºÅÐÎʽ¡¢Ë«ÒýºÅÐÎʽºÍ±êʶ·ûÐÎʽ¡£
 µ¥ÒýºÅÐÎʽ
ÀýÈ磺
¡¡<?php
¡¡¡¡$php = 100;
¡¡¡¡echo ‘This is phpdo.net.<br>’;
¡¡¡¡echo ‘What\’s php<br>’;          
¡¡¡¡echo ‘The file is stored in E:\\<br>’; 
¡¡¡¡echo ‘The variable is $php<br>’;        
¡¡?>
½á¹û£º
¡¡¡¡This is phpdo.net.
¡¡¡¡What’s php
¡¡¡¡The file is stored in E:\
¡


Ïà¹ØÎĵµ£º

phpÀàʹÓÃ


ת×Ô£ºÒÁͼÍø[www.4ico.com]ÔÚ²ûÊöÀàµÄ¸ÅÄî֮ǰÎÒÃÇÀ´ÏÈ˵˵ÃæÏò¶ÔÏó±à³ÌµÄ¸ÅÄÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼Æ(Object-Oriented Programming£¬¼ò¼ÇΪOOP)Á¢ÒâÓÚ´´½¨Èí¼þÖØÓôúÂ룬¾ß±¸¸üºÃµØÄ£ÄâÏÖʵÊÀ½ç»·¾³µÄÄÜÁ¦£¬ÕâʹËü±»¹«ÈÏΪÊÇ×ÔÉ϶øϱà³ÌµÄÓÅʤÕß¡£Ëüͨ¹ý¸ø³ÌÐòÖмÓÈëÀ©Õ¹Óï¾ä£¬°Ñº¯Êý“·â×°”½ø±à³ÌËù±ØÐèµÄ&l ......

phpºÍapache°æ±¾Æ¥ÅäÎÊÌâ(¸ãÁËÒ»ÕûÌì,×°ÁËÒ»´Îϵͳ)

1:·ÅÁË6¸öÎļþÔÚcÅÌÏÂ(php5ts.dll,libmysql.dll ,php_gd2.dll,php_mysql.dll,php_mbstring.dll ),Ò»¸öÔÚwindowsÏÂ,ÁíÎå¸öÔÚwindows/system32ÏÂ
2:ÅäÖÃÁËpath
3:ÃüÁî:httpd.exe -w -n "Apache2" -k start À´²é¿´ÊÇÄÄÒ»ÐеĴíÎóÐÅÏ¢.
×ܽá:µ½ÏÖÔÚΪֹ,ÕûÁËÒ»Ìì,×°ÁËÈý´ÎϵͳµÄÂé·³ÖÕÓÚÇ×ÉíÖ¤Ã÷ÁË,
Õâ¸ö×ï¿ý»öÊײúÉúµÄÔ­Òò ......

php static ¹Ø¼ü×Ö

±¾ÎÄת×Ô http://www.phpchina.com/html/31/35331-12207.html
  PHPÀï±ßÓÃStatic¹Ø¼ü×ÖÀ´¶¨Ò徲̬ÊôÐԺͷ½·¨.
ʵÀýÒ»£º¾²Ì¬ÊôÐÔµÄÒýÓ÷½·¨
<?php
/*
*author:ajax123
*qq:283400245
*/
class person{
       static$name="ajax123";//staticÉùÃ÷¾²Ì¬ÊôÐÔ
   ......

ÎÒµÄ2009Ä깤×÷¾­ÑéС½á(php³ÌÐòÔ±)

תÑÛÓÖÊÇÒ»Äê¹ýÈ¥ÁË£¬Ëƺõ£¬×î½üÎåÁùÄêÀ´£¬Ò»Ö±¶¼¹ýµÃ²»ÄÇô˳Àû£¬½ñÄ껹ËãÊDz»´í£¬ÖÁÉÙ£¬ÔÚ¿Í»§¡¢ÀÏ°åºÍͬʵİïÖúÏ£¬Ò»ÄêµÄ¹¤×÷£¬ÖÕÓÚÔÚÄêÇ°ÊÕβÁË¡£ÔÚ´ËС½áһϣ¬ÎüȡһЩ½Ìѵ£¬ÒÔÃâÀ´ÄêÖØ·¸ÏàͬµÄ´íÎó¡£
1¡¢×öÁËÒ»¸ö×îÕýÈ·µÄÑ¡Ôñ£º¹Ò¿¿Ò»¼ÒÈí¼þ¹«Ë¾×ö³ÌÐò¡£×ö³ÌÐòºÍ×öÒµÎñ£¬ÊDz»Ó¦¸Ãͬһ¸öÈ˽øÐеģ¬¾ÍËã¿Í»§ÊÇÖ÷¶¯É ......

´«FacebookÖØдÔËÐп⣬PHP½«´ó´ó¼ÓËÙ

SDTimes¸ß¼¶±à¼­Alex HandyÔÚ²©¿ÍÖб¬ÁÏ£¬ÉÏÖÜFacebookÑûÇëÁËPHPºËÐÄÍŶӵ½¹«Ë¾ÌÖÂÛËûÃǵÄÐÂÏîÄ¿£º´ÓÍ·ÖØдµÄPHPÔËÐп⡣ÖܶþËûÃǽ«Õýʽ·¢²¼Õâ¸öÏîÄ¿£¬²¢¿ªÔ´¡£
HandyÏàÐÅ£¬ÕâÊÇÁ½ÄêÇ°FacebookÕÐÀ¿µÄһλPHP¸ßÊÖËùΪ¡£
µ«Ò²ÓÐÍøÓÑÔÚ²©¿ÍÏÂÁôÑÔ˵£¬Facebook¿ª·¢µÄÊÇÒ»¸öPHP±àÒëÆ÷£¬Ò²¾ÍÊÇ˵£¬Facebook°æ±¾µÄPHP½«´ÓÒ»¸ö¶¯Ì ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ