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

php---ǧ·Öλ·Ö¸ô·û£¿ - PHP / ¿ªÔ´×ÊÔ´

phpÖÐÈçºÎÊä³öǧ·Öλ·Ö¸ô·û¡£¡£¡£¡£¡£

number_format

PHP code:

//ÊÇÕâÖÖЧ¹û°É£¿

echo number_format(123123123, 2, '.', ',');

//½á¹ûÊä³ö123,123,123.00 2ÊÇСÊýµãºóλÊý£¬µÚÈý¸ö²ÎÊýÊÇСÊýµã·Ö¸ô·û



Ŷ£¬´íÁË£¬ÊÇÔÚhtml Ò³ÃæÊä³ö

Ö»ÒªÄãÊÇÒªÕâÖÖЧ¹û£¬ÄÇ£¬¸³Öµ£¬ÔÚhtmlÒ³ÃæÊä³öÀ´¾ÍÊÇÁË

phpÖдæµÄÊÇÊý×飬ҳÃæÖÐÏÔʾµÄÊÇÆäÖÐÒ»¸öÊôÐÔ£¬ÔÚºǫ́Ôõô¸³Öµ°¡

ÒýÓÃ
phpÖдæµÄÊÇÊý×飬ҳÃæÖÐÏÔʾµÄÊÇÆäÖÐÒ»¸öÊôÐÔ£¬ÔÚºǫ́Ôõô¸³Öµ°¡
PHP code:

$arr=array('a'=>'aaa','b'=>'bbb','c'=>'ccc');
echo $arr['a'];//aaa



Êý×éÖдæµÄÊǶàÐÐÊý¾Ý£¬ÒªÏÔʾµÄÊÇÆäÖÐÒ»ÐеÄijһ¸ö×Ö¶Î

Â¥Ö÷»ØÈ¥¿´Êé°É..ÎÒÊDZȽÏÌÖÑá»Ø´ðÕâ¸öÎÊÌâµÄ.


Ïà¹ØÎÊ´ð£º

³ÏÕÐÓо­ÑéµÄPHP¹¤³Ìʦ£¨¿É¼æÖ°) - PHP / »ù´¡±à³Ì

1.¾«Í¨ÃæÏò¶ÔÏóµÄÉè¼ÆºÍ¿ª·¢£»
2.ÊìÁ·Ê¹ÓÃPHPÓïÑÔ(5.0+)½øÐÐÊý¾Ý¿â£¬ÍøÂçͨÐÅ£¬Îļþ¶Áд£¬°²È«»úÖƵȿª·¢£»
3.ÊìÁ·Ê¹ÓÃMYSQL(5.0+)Êý¾Ý¿â¿ª·¢£¬°üÀ¨»ù±¾µÄÊý¾Ý¿âÉè¼Æ/ÓÅ»¯/°²È«£¬¸´ÔÓµÄT-SQLÓï¾ä±àд£¬ÊìÁ·±àдMYS ......

ÈçºÎÔÚphpÍøÕ¾ÖÐÌí¼Ó±³¾°ÒôÀÖ - PHP / »ù´¡±à³Ì

ÎÒÔÚÍøÕ¾µÄÒýµ¼Ò³ÖÐÌí¼ÓÁË<embed src="ÒôÀÖµØÖ·" autostart="true" loop="true" hidden="true"></embed>
Õâ¾ä»°£¬È»ºóÌøתҳÃæºó£¬±³¾°ÒôÀÖ¾ÍûÓÐÁË£¬ÔõôÈÃÕ ......

ÐÂѧPHP Çë½ÌÎÊÌâ - PHP / »ù´¡±à³Ì

PHPÖÐ ÉùÃ÷±äÁ¿µÄʱºòÒ»¸ö$¸úÁ½¸ö$µÄÇø±ð
±ÈÈç˵
$var="333"; ±íʾ±äÁ¿ÃûΪ$varµÄ±äÁ¿µÄֵΪ333
$var="myvar";$$var="333";±íʾ±äÁ¿ÃûΪ$myvarµÄ±äÁ¿µÄֵΪ333
ÕâÑù˵Çå³þÁËÂ𣿠......

PHP Ôõô·ÀµÁÁ´½Ó´ò¿ªÒ³Ã棿 - PHP / »ù´¡±à³Ì

Ö»ÄÜ´Ó±¾Õ¾µÄÒ³Ãæ´ò¿ª ÄÚÈÝÒ³Ãæ¡£
°üÀ¨ä¯ÀÀÆ÷ Ö±½ÓÊäÈëµØÖ· £¬Ò³Ãæ¾ÍÏÔʾ ³ö´í PHP´úÂëÒªÔõôд£¿
ÓдóÏÀÄܸø³ö´úÂëÂð£¿


¡¶PHP5ÓëMYSQL5 web¿ª·¢¼¼ÊõÏê½â¡·Ò»ÊéµÄµÚÎåÕ£¬¡°´¦ÀíÓû§ÊäÈ롱ÖÐÌáµ½£¬¿ÉÒÔÒÀ¿¿Ñé ......

mysqlÔËÓÃÎÊÌâ - PHP / »ù´¡±à³Ì

phpͬʱµ÷ÓÃ3¸öÊý¾Ý¿âÖеÄÒ»¸ö±íµÄÐÅÏ¢£¨¼ÜÉèA.a.aid=B.b.bid=C.c.cid£©£¬Çë˵Ã÷˼·¼°Êéд²¿·Ö´úÂë
ÀýÈ磺
SELECT time, goodid from dbname1.time, dbname2.goods
ÊÇÕâ¸öÒâ˼ô£¿

SELECT time, goodid from ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ