php---ǧ·Öλ·Ö¸ô·û£¿ - PHP / ¿ªÔ´×ÊÔ´
phpÖÐÈçºÎÊä³öǧ·Öλ·Ö¸ô·û¡£¡£¡£¡£¡£
number_format
PHP code:
//ÊÇÕâÖÖЧ¹û°É£¿
echo number_format(123123123, 2, '.', ',');
//½á¹ûÊä³ö123,123,123.00 2ÊÇСÊýµãºóλÊý£¬µÚÈý¸ö²ÎÊýÊÇСÊýµã·Ö¸ô·û
Ŷ£¬´íÁË£¬ÊÇÔÚhtml Ò³ÃæÊä³ö
Ö»ÒªÄãÊÇÒªÕâÖÖЧ¹û£¬ÄÇ£¬¸³Öµ£¬ÔÚhtmlÒ³ÃæÊä³öÀ´¾ÍÊÇÁË
phpÖдæµÄÊÇÊý×飬ҳÃæÖÐÏÔʾµÄÊÇÆäÖÐÒ»¸öÊôÐÔ£¬ÔÚºǫ́Ôõô¸³Öµ°¡
PHP code:
$arr=array('a'=>'aaa','b'=>'bbb','c'=>'ccc');
echo $arr['a'];//aaa
Êý×éÖдæµÄÊǶàÐÐÊý¾Ý£¬ÒªÏÔʾµÄÊÇÆäÖÐÒ»ÐеÄijһ¸ö×Ö¶Î
Â¥Ö÷»ØÈ¥¿´Êé°É..ÎÒÊDZȽÏÌÖÑá»Ø´ðÕâ¸öÎÊÌâµÄ.
Ïà¹ØÎÊ´ð£º
1.¾«Í¨ÃæÏò¶ÔÏóµÄÉè¼ÆºÍ¿ª·¢£»
2.ÊìÁ·Ê¹ÓÃPHPÓïÑÔ(5.0+)½øÐÐÊý¾Ý¿â£¬ÍøÂçͨÐÅ£¬Îļþ¶Áд£¬°²È«»úÖƵȿª·¢£»
3.ÊìÁ·Ê¹ÓÃMYSQL(5.0+)Êý¾Ý¿â¿ª·¢£¬°üÀ¨»ù±¾µÄÊý¾Ý¿âÉè¼Æ/ÓÅ»¯/°²È«£¬¸´ÔÓµÄT-SQLÓï¾ä±àд£¬ÊìÁ·±àдMYS ......
ÎÒÔÚÍøÕ¾µÄÒýµ¼Ò³ÖÐÌí¼ÓÁË<embed src="ÒôÀÖµØÖ·" autostart="true" loop="true" hidden="true"></embed>
Õâ¾ä»°£¬È»ºóÌøתҳÃæºó£¬±³¾°ÒôÀÖ¾ÍûÓÐÁË£¬ÔõôÈÃÕ ......
PHPÖÐ ÉùÃ÷±äÁ¿µÄʱºòÒ»¸ö$¸úÁ½¸ö$µÄÇø±ð
±ÈÈç˵
$var="333"; ±íʾ±äÁ¿ÃûΪ$varµÄ±äÁ¿µÄֵΪ333
$var="myvar";$$var="333";±íʾ±äÁ¿ÃûΪ$myvarµÄ±äÁ¿µÄֵΪ333
ÕâÑù˵Çå³þÁËÂð£¿
......
Ö»ÄÜ´Ó±¾Õ¾µÄÒ³Ãæ´ò¿ª ÄÚÈÝÒ³Ãæ¡£
°üÀ¨ä¯ÀÀÆ÷ Ö±½ÓÊäÈëµØÖ· £¬Ò³Ãæ¾ÍÏÔʾ ³ö´í PHP´úÂëÒªÔõôд£¿
ÓдóÏÀÄܸø³ö´úÂëÂð£¿
¡¶PHP5ÓëMYSQL5 web¿ª·¢¼¼ÊõÏê½â¡·Ò»ÊéµÄµÚÎåÕ£¬¡°´¦ÀíÓû§ÊäÈ롱ÖÐÌáµ½£¬¿ÉÒÔÒÀ¿¿Ñé ......
phpͬʱµ÷ÓÃ3¸öÊý¾Ý¿âÖеÄÒ»¸ö±íµÄÐÅÏ¢£¨¼ÜÉèA.a.aid=B.b.bid=C.c.cid£©£¬Çë˵Ã÷˼·¼°Êéд²¿·Ö´úÂë
ÀýÈ磺
SELECT time, goodid from dbname1.time, dbname2.goods
ÊÇÕâ¸öÒâ˼ô£¿
SELECT time, goodid from ......