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

PHPÖе¥ÒýºÅÓëË«ÒýºÅµÄÇø±ð

 
Ò»¡¢ÒýºÅ¶¨Òå×Ö·û´®
¡¡¡¡ÔÚPHPÖУ¬Í¨³£Ò»¸ö×Ö·û´®±»¶¨ÒåÔÚÒ»¶ÔÒýºÅÖУ¬È磺
'I am a
string in single quotes'
"I am a string in double
quotes"
¡¡¡¡PHPÓï·¨·ÖÎöÆ÷ÊÇÓóɶԵÄÒýºÅÀ´ÅжÏÒ»¸ö×Ö·û´®µÄ¡£Òò´Ë£¬ËùÓÐ×Ö·û´®±ØÐëʹÓÃͬһÖÖµ¥»òÕßË«
ÒýºÅÀ´¶¨Ò忪ʼºÍ½áÊø¡£ÀýÈ磬ÏÂÃæµÄ×Ö´®¶¨ÒåÊDz»ºÏ·¨µÄ£º
"I
am not a valid string since I have unmatching quote marks'
'Me
neither!"
¡¡¡¡¶¨Òå×Ö·û´®Ê±£¬Ö»ÓÐÒ»ÖÖÒýºÅ±»ÊÓΪ¶¨Òå·û£¬¼´µ¥ÒýºÅ»òË«ÒýºÅ¡£ÓÚÊÇ£¬Èç¹ûÒ»¸ö×Ö·û´®ÓÉË«Òý
ºÅ¿ªÊ¼£¬ÄÇôֻÓÐË«ÒýºÅ±»·ÖÎöÆ÷½âÎö¡£ÕâÑù£¬Äã¾Í¿ÉÒÔÔÚË«ÒýºÅ´®Öаüº¬ÈκÎÆäËû×Ö·û£¬ÉõÖÁµ¥Òý
ºÅ¡£ÏÂÃæµÄÒýºÅ´®¶¼ÊǺϷ¨µÄ£º
$s
= "I am a 'single quote string' inside a double quote string";
$s = 'I am a
"double quote string" inside a single quote
string';
¡¡¡¡µ±PHPÓöµ½Óë´®µÄ¿ªÍ·Ïà¶ÔÓ¦µÄÒýºÅʱ£¬±ãÈÏΪÒѾ­µ½ÁË×Ö·û´®Î²²¿£¬ÓÚÊÇ£º
"Why doesn't "this"
work?"
¡¡¡¡Êµ¼ÊÉϱ»PHPÓï·¨·ÖÎöÆ÷·Ö³ÉÈý¸ö²¿·Ö:
"Why doesn't
"——°üº¬Ò»¸öµ¥ÒýºÅµÄË«ÒýºÅ´®
this——¶àÓàµÄ×Ö·û£¬·ÖÎöÆ÷ÎÞ·¨´¦Àí
" work?"
——ÆÕͨ×Ö·û´®
¡¡¡¡ÉÏÃæµÄÕâ¸öÀý×ÓÆóͼÔÚË«ÒýºÅ´®Öаüº¬Ë«ÒýºÅ£¬¶ø·ÖÎöÆ÷ÔÚÓöµ½µÚ¶þ¸öË«ÒýºÅʱ±ãÈÏΪ×Ö·û´®½á
ÊøÁË¡£Òª´ïµ½°üº¬ÒýºÅµÄÄ¿µÄ£¬±ØÐë·ÖÎöÆ÷ÔÚÓöµ½´®ÄÚÆÕͨÒýºÅµÄʱºòºöÂÔËüµÄÔ­Ò⣬ÎÒÃÇÔÚÒýºÅµÄ
Ç°Ãæ¼ÓÉÏÒ»¸ö·´Ð±¸ÜÀ´¸æËßPHP£ºÕâ¸öÒýºÅÊÇ×Ö·û´®µÄÒ»²¿·Ö£¬ÕýÈ·µÄ±íʾ·½·¨ÊÇÕâÑù:
"Why
doesn't \"that\"
work?"
¡¡¡¡ÔÚÓ¢ÎÄ×Ö·û´®ÖÐÒ»¸ö³£¼ûµÄÎÊÌâÊÇƲºÅ'µÄʹÓã¬ÒòΪËü¾ÍÊÇÒ»¸öµ¥ÒýºÅ£¬¶øÔÚÓ¢ÎÄ´®ÖÐÊ®·Ö³£¼û
£¨Ó¢ÎÄËùÓиñ£©¡£Äã±ØÐëСÐÄ´¦ÀíÕâЩ×Ö·û:
'You\'d
better escape your
apostrophes'
¡¡¡¡¿ÉÒÔ¿´µ½·´Ð±¸ÜÔÚ×Ö·û´®ÖÐÓÐËûµÄÌØÊ⺬Ò壬µ±ÎÒÃÇÐèÒªÔÚ×Ö·û´®Öаüº¬·´Ð±¸Ü±¾Éíʱ£¬ÐèÒªÔÚ
¸Ã·ûºÅÇ°Ãæ¶à¼ÓÒ»¸ö·´Ð±¸Ü¡£ÀýÈ磺
$file
= "c:\windows\system.ini";
echo $file; // ´òÓ¡½á¹ûΪ£º c:windowssystem.ini
$file
= "c:\\windows\\system.ini";
echo $file; // ´òÓ¡½á¹ûΪ£º
c:\windows\system.ini
¡¡¡¡ÁíÒ»ÖÖ×Ö·û´®¶¨Ò巽ʽ£¬Äܹ»Ïû³ýÌØÊâ×Ö·ûµÄ·³ÄÕ£¬¶øÇÒ±ãÓÚÒýÓýϳ¤µÄÎı¾¡£¸Ã×Ö·û´®¶¨Òå·½
·¨ÒÔ<


Ïà¹ØÎĵµ£º

php×ܽᣨ5£©

showmessage()¡¢cpmsg()¡¢showsettings()
ÓÐÁ½¸öglobal.func.php·Ö±ðÔÚincludeÓëadminÀïÃæ¡£
forumdata´æ·Å»º´æ¡¢Ä£°å»º´æ¡¢ÉÏ´«¸½¼þµÈ£¬Òò´ËÊôÐÔ±ØÐëÊÇ777¡£
archiverÓëwap´æ·ÅÁËÁ½¸ö×Óϵͳ£¬·Ö±ðΪËÑË÷ÒýÇæºÍÊÖ»úÓû§×¼±¸µÄ
ÖØмÆËã»ý·ÖµÄÌõ¼þ£¬Óû§¿ÉÒÔ¶¨Òå×Ü»ý·Ö¼ÆË㹫ʽ£¬µ«Ä¬ÈÏÇé¿öÏ£¬×Ü»ý·ÖµÈÓ ......

phpÀïsessionµÄÓ÷¨£¨³¬¼¶¾­µä£©

phpÖÐsessionµÄÓ÷¨
PHPÖеÄsessionĬÈÏÇé¿öÏÂÊÇʹÓÿͻ§¶ËµÄCookie¡£µ±¿Í»§¶ËµÄCookie±»½ûÓÃʱ£¬»á×Ô¶¯Í¨¹ýQuery_StringÀ´´«µÝ¡£
Php´¦Àí»á»°µÄº¯ÊýÒ»¹²ÓÐ11¸ö£¬ÎÒÃÇÏêϸ½éÉÜһϽ«ÒªÓõ½¼¸¸öº¯Êý¡£
1¡¢ session_start
º¯Êý¹¦ÄÜ£º¿ªÊ¼Ò»¸ö»á»°»òÕß·µ»ØÒѾ­´æÔڵĻỰ¡£
º¯ÊýÔ­ÐÍ£ºboolean se ......

phpѧϰÊղأºPHPÊý×éµÄ×ܽá

 
Ò»¡¢Ê²Ã´ÊÇÊý×é
Êý×é¾ÍÊÇÒ»×éÊý¾ÝµÄ¼¯ºÏ£¬°ÑһϵÁÐÊý¾Ý×éÖ¯ÆðÀ´£¬ÐγÉÒ»¸ö¿É²Ù×÷µÄÕûÌå¡£Êý×éµÄÿ¸öʵÌ嶼°üº¬Á½Ï¼üºÍÖµ¡£
¶þ¡¢ÉùÃ÷Êý¾Ý
ÔÚPHPÖÐÉùÃ÷Êý×éµÄ·½Ê½Ö÷ÒªÓÐÁ½ÖÖ£ºÒ»ÊÇÓ¦ÓÃarray()º¯ÊýÉùÃ÷Êý×飬һÊÇÖ±½ÓΪÊý×éÔªËظ³Öµ¡£
<1>array()º¯ÊýÉùÃ÷µÄÊý×éµÄ·½Ê½array([mixed...]) ²ÎÊýmixedµÄÓï·¨ ......

PHP µ÷ÊÔÖ¸ÄÏ


Ò»¡¢Ç°Ìá
       ÎÒÃÇÐèÒªÒ»¸ö Web ·þÎñÆ÷À´½âÎöÓà PHP ´´½¨µÄÒ³Ãæ²¢°ÑËüÃÇÏÔʾµ½ä¯ÀÀÆ÷¡£±¾ÎÄÖÐʹÓõÄÊÇ Apache2¡£µ«ÊÇ£¬ÈκΠWeb ·þÎñÆ÷¶¼¿ÉÒÔÂú×ãÒªÇó¡£
       ÒªÀûÓñ¾ÎÄÖнéÉܵÄһЩµ÷ÊÔ¼¼Êõ£¬ÐèÒª°²×° Eclipse V3.1.1 ºÍ²å¼þ PHPEclipse V ......

javaºÍphpÊý×Ö´¦ÀíÉÏ

javaʹÓÃMathÀ࣬phpʹÓÃϵͳº¯Êý
ceil¹¦ÄÜ ´óÓÚµÈÓÚijÊý(³£ÓÃÓÚ·ÖÒ³Ò³Êý¼ÆË㣩
phpÖУºceil(a/b)
javaÖУº(int)Math.ceil((double)a/b))    Math.ceilÔÚjavaÖÐÐèÒª´«ÈëdoubleÐÍ£¬¶ø·µ»ØÒ²ÊÇdoubleÐÍ¡£×¢ÒâÕâÀïÓÃ(double)a/b²Å¿ÉÒÔ¡£
a/b,(dobule)(a/b)¶¼²»ÐС£ÒòΪËûÃÇ»áÏÈ×Ô¶¯ÉáÆúСÊýÈ¡µÃÕûÊý
flooe ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ