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

phpѧϰ±Ê¼Ç£¨3£©:PHP»ù±¾Óï·¨ºÍÊý¾ÝÀàÐÍ£º

PHP»ù±¾Óï·¨ºÍÊý¾ÝÀàÐÍ£º
£¨1£©¡¢PHP»ù±¾Óï·¨£º
 1¡¢htm ºÍ php »ì±à
 
2¡¢Ò»¸öÓï¾äÒÔ  ; (·ÖºÅ½áÊø)
 
3¡¢ÈçºÎ¶¨ÒåÒ»¸ö±äÁ¿£¬ºÍ±äÁ¿µÄʹÓÃ
 (2)PHPÊý¾ÝÔËËãÀàÐÍ
 ËÄÖÖ±êÁ¿ÀàÐÍ£º
 
boolean£¨²¼¶ûÐÍ£© Àí½âΪÕæ¼ÙÐÍ
 
integer£¨ÕûÐÍ£©
 
float£¨¸¡µãÐÍ£¬Ò²×÷“double”£©
Àí½âΪСÊýÐÍ
 
string£¨×Ö·û´®£©
Á½ÖÖ¸´ºÏÀàÐÍ£º
 
array£¨Êý×飩
 
object£¨¶ÔÏó£©
boolean£¨²¼¶ûÐÍ£© Àí½âΪÕæ¼ÙÐÍ
 
       
$bo=TRUE;  $bo=FALSE;
integer£¨ÕûÐÍ£©
 
       
$bo=1;  $bo=-12;
 
float£¨¸¡µãÐÍ£¬Ò²×÷“double”£© Àí½âΪСÊýÐÍ
       
$bo=1.001;  $bo=3.1415926;
string£¨×Ö·û´®£©
 
$bo=“Õâ¶Î×Ö·û´® or EN Word”;
array£¨Êý×飩
$bo=array(1,2,3,4);  $bo=array(“A”=>1 , “B”=>2);
ÒÔÏÂÊÇÎҵĵÚÒ»¸öphp³ÌÐòÔ´Â룺
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>µÚÒ»¸öPHP³ÌÐò</title>
<mce:style type="text/css"><!--
body,td,th {
font-size: 12px;
}
body {
margin-left: 10px;
margin-top: 10px;
margin-right: 10px;
margin-bottom: 10px;
}
--></mce:style><style type="text/css" mce_bogus="1">body,td,th {
font-size: 12px;
}
body {
margin-left: 10px;
margin-top: 10px;
margin-right: 10px;
margin-bottom: 10px;
}</style></head>
<body style="text-align:center" mce_style="text-align:center">
<span style="font-size:36px;color:blue;font-family:»ªÎÄÐп¬" mce_style="font-size:36px;color:blue;font-family:»ªÎÄÐп¬">»¶Ó­½øÈëPHPµÄÊÀ½ç£¡£¡!</span>
<?php
$name="CHAUVET";
$iValue="9999";
$fValue=9.9900;


Ïà¹ØÎĵµ£º

php ÀàµÄʹÓÃ

Óû§¶¨ÒåµÄÀ࣬ҲÊÇѧºÃ PHP Ëù±Ø±¸µÄÌõ¼þÖ®Ò»¡£
¶ø PHP µÄÀ࣬ºÍÆäËüµÄÃæÏò¶ÔÏóÓïÑԱȽÏÆðÀ´£¬»¹ËãÂùµ¥´¿µÄ¡£
PHP Ö»ÓÐÀà±ð (class)¡¢·½·¨ (method)¡¢ÊôÐÔ¡¢ÒÔ¼°µ¥Ò»¼Ì³Ð (extensions) µÈ¡£
¶Ô²»Ï°¹ßʹÓà C++¡¢Java¡¢Delphi µÈÃæÏò¶ÔÏóÓïÑÔÀ´¿ª·¢³ÌÐòµÄÓû§£¬²»·ÁÏÈÔĶÁÒ»ÏÂÓйØÃæÏò¶ÔÏó¸ÅÄîµÄÊ飬ÏàÐÅ¿ÉÒÔ´øÀ´Ðí¶àµÄÊÕ ......

php¶àÏß³ÌÉÏÏÂÎÄÖа²È«Ð´Îļþ

Ìṩһ¸öphp¶àÏß³ÌÉÏÏÂÎÄÖа²È«Ð´ÎļþµÄʵÏÖ·½·¨¡£Õâ¸öʵÏÖûÓÐʹÓÃphp µÄfile lock»úÖÆ£¬Ê¹ÓõÄÊÇÁÙʱÎļþ»úÖÆ¡£¶àÏß³ÌÖеĸ÷¸öÏ̶߳¼ÊǶԸ÷×Ô£¨Ã¿¸öÏ̶߳ÀÕ¼Ò»¸ö£©µÄÁÙʱÎļþд£¬È»ºóÔÙͬ²½µ½Ô­ÎļþÖС£
<?php
/**
* @usage: used to offer safe file write operation in multiple threads context, arbitory file ......

¼ÌÐøÕª³­£ºeclipse ¿ìËÙ½¨Á¢PHPµ÷ÊÔ»·¾³

 eclipse ¿ìËÙ½¨Á¢PHPµ÷ÊÔ»·¾³
   ÔÚÍøÉÏ¿´ÁËÐí¶à¹ØÓÚeclipse ½¨Á¢PHPµ÷ÊÔ»·¾³µÄÎÄÕÂ,×Ô¼ºÈ¥³¢ÊÔÁËÒ»·­,µ«¶¼Ã»Óгɹ¦,ºóÀ´×Ô¼ºµ½ZendµÄ¹Ù·½È¥¿´,Ô­À´ÊÇ°æ±¾µÄÎÊÌâ.ÏÖÔÚÌṩÍêÕûµÄÅäÖò½Öè.Ï£Íû³õѧÕßÄÜ¿ìËÙ½¨Á¢ºÃ»·¾³,°Ñ¾«Á¦¼¯Öе½´úÂë¶ø²»ÊÇÅäÖÃÉÏ.Èç¹ûÄú¿´Í껹ûÓÐÅäÖóɹ¦,Äú»¹¿ÉÒÔµã»÷ ÊÓƵ1 ÊÓƵ2 ´Ë´ ......

PHPһЩÓÐÒâ˼µÄСÇø±ð

µ¥ÒýºÅ'ºÍË«ÒýºÅ"µÄÇø±ð£º

Ê×ÏÈÊǵ¥ÒýºÅÒª±ÈË«ÒýºÅÖ´ÐÐЧÂÊÒª¸ß£¬ÒòΪ˫ÒýºÅ»á¶ÔÄÚÈݽøÐÐÔ¤´¦Àí¡£
ÀýÈ磺'$value' Êä³ö×Ö·û $value ; "$value"Êä³ö±äÁ¿$valueµÄÖµ¡£
charºÍvarcharµÄÇø±ð£º

charÊǶ¨³¤¶øvarcharÊDZ䳤£¬charµÄÖ÷ÒªÌصãÊÇ´æ´¢·½Ê½Ô¤·ÖÅ䣬varcharµ±ËüµÄÊý¾Ý³¤¶È·¢Éú±ä»¯Ê±»áÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ