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

php smarty±äÁ¿µÄÐÞÊÎ

test.php´úÂ룺 view plaincopy to clipboardprint?
assign("total",$total); //¶ÔÄ£°æÖеıäÁ¿¸³Öµ $formatted_total = number_format($total); //¸ñʽ»¯$total $smarty->assign("formatted_total",$formatted_total); //¶ÔÄ£°æÖеıäÁ¿¸³Öµ $smarty->display('test1.htm'); //ÏÔÊ¾Ò³Ãæ ?>
assign("total",$total); //¶ÔÄ£°æÖеıäÁ¿¸³Öµ $formatted_total = number_format($total); //¸ñʽ»¯$total $smarty->assign("formatted_total",$formatted_total); //¶ÔÄ£°æÖеıäÁ¿¸³Öµ $smarty->display('test1.htm'); //ÏÔÊ¾Ò³Ãæ ?> test1.htmlÄ£°å´úÂ룺 view plaincopy to clipboardprint?
Total is {$total}
Formatted Total is {$formatted_total}
Total is {$total}
Formatted Total is {$formatted_total}
±àÒëºóµÄtest.html.php´úÂ룺 view plaincopy to clipboardprint?
Total is _tpl_vars['total']; ?>
Formatted Total is _tpl_vars['formatted_total']; ?>
Total is _tpl_vars['total']; ?>
Formatted Total is _tpl_vars['formatted_total']; ?>
test1.htmlÄ£°å¿ÉÒÔ¸Äд³ÉÕâÑùtest2.html£º view plaincopy to clipboardprint?
Total is {$total}
Formatted Total is {$total|number_format}
Total is {$total}
Formatted Total is {$total|number_format}
ÔòÏàÓ¦µÄtest.php´úÂë¸ÄΪ£º view plaincopy to clipboardprint?
assign("total",$total); //¶ÔÄ£°æÖеıäÁ¿¸³Öµ $smarty->display('test2.htm'); //ÏÔÊ¾Ò³Ãæ ?>
assign("total",$total); //¶ÔÄ£°æÖеıäÁ¿¸³Öµ $smarty->display('test2.htm'); //ÏÔÊ¾Ò³Ãæ ?> ä¯ÀÀÆ÷ÏÔʾ£º Total is 12345 Formatted Total is 12,345 ±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/zhuzhao/archive/2009/03/19/4006030.aspx ±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/zhuzhao/archive/2009/03/19/4006030.aspx


Ïà¹ØÎĵµ£º

PHPÈçºÎ¶ÔSESSIONÐòÁл¯£¨SESSION¶ÔÏó´¦Àí£©

這個問題ÓÐ點Ææ¹Ö£¬ÔÚJavaºÍ.netµÄÊÀ½ç裡還δÅöµ½過.......
¿´來PHP對對ÏóµÄÖ§³Ö還²»ÊÇÌ«ÓѺ㬺ǺÇ~~~
[轉載ì¶£º] http://blog.csdn.net/yehell/archive/2007/12/19/1953826.aspx
½ñÌìÔÚphpÎļþÖÐÉèÖÃÁËÒ»¸ösession.²¢½«Ò»¸öÀ ......

PHPÒ³Ãæ——Hello£¬World£¡

Ô­ÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/2010/01/26/1-2/
ËùÓбà³ÌÓïÑԵĿªÊ¼:Hello,world!Ò³Ãæ¡£
Ê×ÏÈʹÓÃhtml±àдһ¸ö¼òµ¥µÄÒ³Ãæ¡£´úÂëÈçÏ£º
<html>
<head>
<title>Hello, world</title>
</head>
<body>
<H1><p align=center>Hello, world</p></H1 ......

php json ajax

¡¡»¥ÁªÍøµÄ½ñÌ죬AJAXÒѾ­²»ÊÇʲôİÉúµÄ´Ê»ãÁË¡£ËµÆðAJAX£¬¿ÉÄÜ»áÁ¢¼´ÏëÆðÒòRSS¶øÐËÆðµÄXML¡£XMLµÄ½âÎö£¬¿ÖÅÂÒѾ­²»ÊÇʲôÄÑÌâ
ÁË£¬ÌرðÊÇPHP5£¬´óÁ¿µÄXML½âÎöÆ÷µÄÓ¿ÏÖ£¬Èç×îÇáÁ¿¼¶µÄSimpleXML¡£²»¹ý¶ÔÓÚAJAXÀ´Ëµ£¬XMLµÄ½âÎö¸üÇãÏòÓÚǰ̨Javascript
µÄÖ§³Ö¶È¡£ÎÒÏëËùÓнâÎö¹ýXMLµÄÈË£¬¶¼»áÒòÊ÷ºÍ½Úµã¶øÍ·´ó¡£²»¿É·ñÈÏ£¬X ......

PHPϵͳѧϰ¸ÅÒª£¨×ªÌû£©¸öÈËÈÏΪºÜÖµµÃÒ»¿´£¡

˵Ã÷£º
1¡¢±¾ÎĵµÊÇΪ³õѧPHPµÄÅóÓѶøÖÆ×÷µÄ¡£
2¡¢¿´Á˱¾ÎĵµÑ§»áPHPµÄÅóÓÑ£¬Çë·´À¡Äã¶Ô±¾ÎĵµµÄÒâ¼û»ò½¨Òé(·¢Óʼþµ½kuaiyigang@163.com»òÔÚQQȺ4798654ÖÐÌá³ö)£¬ÒÔ°ïÖú¸ü¶àµÄ³õѧÕß¡£
1¡¢phpÓïÑԵĸÅÊö¼°¿ª·¢»·¾³µÄÅäÖã¨1Ì죩
a¡¢php·¢Õ¹¼°Ó¦ÓýéÉÜ£¨Á˽⣩
b¡¢php¼°Ïà¹ØÈí¼þÔÚÀàlinuxºÍwindowsµÄ¾ßÌå°²×°²½Öè £¨³õ ......

Smarty Ä£°å ´Óphp·ÖÅäµÄ±äÁ¿ Êý×é

index.php:
$smarty = new Smarty;
$smarty->assign('Contacts',
array('555-222-9876',
'zaphod@slartibartfast.com',
array('555-444-3333',
'555-111-1234')));
$smarty->display('index.tpl');
index.tpl:
{$Contacts[0]}<br>
{$Contacts[1]}<br>
{* you can print arrays of arrays ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ