Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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.²¢½«Ò»¸öÀ ......

java php DES ¼ÓÃܽâÃÜ

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 ......

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 ......

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 ......

·ÖÏí¼¸¸öphpʱ¼äÏà¹ØµÄº¯Êý

function FormatShowTime($nTotalSec)
{
//echo "total sec:" . $nTotalSec . '<br>';

$strTime = "";
//day
if ($nTotalSec > 3600 * 24)
{
$nDay = (int)($nTotalSec / (3600 * 24));
//$nDay > 0 ? $nDay : 1;
$strTime = $nDay;
$strTime .= 'Ìì';
//echo "nDay: ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ