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ÖмÆËãʱ¼ä²îÓÐʱºòÊǼþÂé·³µÄÊÂ!²»¹ýÖ»ÒªÄãÕÆÎÕÁËÈÕÆÚʱ¼äº¯ÊýµÄÓ÷¨ÄÇÕâЩҲ¾Í±äµÄ¼òµ¥ÁË:
Ò»¸ö¼òµ¥µÄÀý×Ó¾ÍÊǼÆËã½èÊéµÄÌìÊý,ÕâÐèÒªphp¸ù¾ÝÿÌìµÄÈÕÆÚ½øÐмÆËã,ÏÂÃæ¾ÍÀ´Ì¸Ì¸ÊµÏÖÕâÖÖÈÕÆÚ¼ÆËãµÄ¼¸ÖÖ·½·¨:
(1) Èç¹ûÓÐÊý¾Ý¿â¾ÍºÜÈÝÒ×ÁË!ÈôÊÇMSSQL¿ÉÒÔʹÓô¥·¢Æ÷!ÓÃרÃżÆËãÈÕÆÚ²îµÄº¯Êýdatediff()±ã¿É ......
import java.io.IOException;
import java.security.SecureRandom;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.DESKeySpec;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
public class DES {
private byte ......
ÎÒʹÓÃWAMP5 version 1.7.4°²×°PHP+Apache+MySQL¼¯³É»·¾³£¬ÔÚµ÷ÊÔÒ»¸ö³ÌÐòʱ£¬ÆäÑéÖ¤Âë²»ÄÜÏÔʾ£¬ÊÔÁ˺öà´Î£¬ÐÞ¸ÄÁ˺ܶàµØ·½Ò²Ã»Äܳɹ¦¡£ÒÑ×öºÃµÄÅäÖÃÈçÏ£º
¢ÙÔÚphpinfÒ³ÃæLoaded Configuration FileºóÃæËùÖ¸¶¨µÄphp.iniÖаÑ;extension=php_gd2.dllÇ°ÃæµÄ;È¥µô¡£
¢ÚÖØÆôÁËApache·þÎñÆ÷¡£
Âé· ......
ÄÚÈÝÕªÒª£ºRSS ¾ÛºÏ×î½ü·Ç³£Á÷ÐУ¬Òò´ËÖÁÉÙ¶Ô RSS ¼°Æ乤×÷·½Ê½ÓÐËùÁ˽âÊÇÒ»Ãû PHP ¿ª·¢ÈËÔ±µÄÆÈÇÐÐèÒª¡£±¾ÎĽéÉÜÁË RSS »ù´¡ÖªÊ¶¡¢RSS ÖÚ¶àÓÃ;ÖеÄһЩÓÃ;¡¢ÈçºÎʹÓà PHP ´ÓÊý¾Ý¿â´´½¨ RSS ÌáÒª£¬ÒÔ¼°ÈçºÎʹÓà XML_RSS Ä£¿é¶ÁÈ¡ÏÖÓÐ RSS ÌáÒª²¢½«Æäת»»Îª HTML¡£
¡¡¡¡Ê²Ã´£¿ÄúûÌý˵¹ý RSS£¿
¡¡¡¡RSS ¾ÛºÏÊÇ×î³£¼ûµÄ ......