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

PHP½«Ãëת»¯³ÉСʱºÍ·Ö£¨¸ñʽΪ ** Сʱ ** ·Ö£©

/* Author: ÑîÓî <yangyu@sina.cn>  */
//½«Ã루·Çʱ¼ä´Á£©×ª»¯³É ** Сʱ ** ·Ö
function sec2time($sec){
 $sec = round($sec/60);
 if ($sec >= 60){
  $hour = floor($sec/60);
  $min = $sec%60;
  $res = $hour.' Сʱ ';
  $min != 0  &&  $res .= $min.' ·Ö';
 }else{
  $res = $sec.' ·ÖÖÓ';
 }
 return $res;
}
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/yangyu112654374/archive/2009/12/18/5032370.aspx


Ïà¹ØÎĵµ£º

PHP»ù±¾Óï·¨


±ê×¼´úÂëÈçÏÂ:
<?php
...
?>
¶Ì±êǩģʽ(´ËģʽÐèÒªÐÞ¸ÄPHPÅäÖã¬ÈÃPHPÖ§³Ö¶Ì±êǩģʽ)£º
<?
...
?>
×¢ÊÍ£º
/* ...*/
//
#

ÆäËü£º
ÔÚphpÖÐÓÃ";"À´·Ö¸ôÓï¾ä¡£
Àý¾ä£º
<?php
echo "Hello World!"
?>
......

PHP dataº¯ÊýµÄ³£ÓòÎÊý

a - СдµÄam»òpm
A - ´óдµÄAM»òPM
d - ÈÕ£¬Á½Î»Êý×Ö£¬²»×ãÁ½Î»Ôòǰµ¼×Ô¶¯²¹Áã
D - ±íʾÐÇÆÚµÄÓ¢ÎĵÄǰÈý¸öÓ¢ÎÄ×Öĸ
F - Ô·ݵÄÓ¢ÎÄÈ«Ãû
h - 12Ð¡Ê±ÖÆ£¬Á½Î»Êý×Ö£¬²»×ãÁ½Î»Ôòǰµ¼×Ô¶¯²¹Áã
H - 24Ð¡Ê±ÖÆ£¬Á½Î»Êý×Ö£¬²»×ãÁ½Î»Ôòǰµ¼×Ô¶¯²¹Áã
g - 12Ð¡Ê±ÖÆ£¬²»×ãÁ½Î»µÄСʱ²»²¹Áã
G - 24Ð¡Ê±ÖÆ£¬²»×ãÁ½Î»µÄСʱ²»²¹Áã ......

——phpͼÏñ´¦ÀíÀà

<?
* +-------------------------------------------------------------+
* | Copyright (c) 2008-2009 Diqiye.Com All rights reserved.
* +-------------------------------------------------------------+
* | Info : ͼÏñ´¦ÀíÀà
* +------------------------------------------------------------ ......

phpÖ®XMLתÊý×麯Êý

<?
/**
* xml2array() will convert the given XML text to an array in the XML structure.
* Link: http://www.bin-co.com/php/scripts/xml2array/
* Arguments : $contents - The XML text
* $get_attributes - 1 or 0. If this is 1 the function will get the attributes as well as the ......

php·ÃÎʳÉÔ±±äÁ¿ºÍ³ÉÔ±·½·¨

php½Ì³Ì:·ÃÎÊPHPÀàÖгÉÔ±±äÁ¿»ò·½·¨
ÔÚ·ÃÎÊPHPÀàÖеijÉÔ±±äÁ¿»ò·½·¨Ê±£¬Èç¹û±»ÒýÓõıäÁ¿»òÕß·½·¨±»ÉùÃ÷³Éconst»òÕßstatic,ÄÇô¾Í±ØÐëʹÓòÙ×÷·û::,
·´Ö®Èç¹û±»ÒýÓõıäÁ¿»òÕß·½·¨Ã»Óб»ÉùÃ÷³Éconst»òÕßstatic,ÄÇô¾Í±ØÐëʹÓòÙ×÷·û->¡£
ÁíÍ⣬Èç¹û´ÓÀàµÄÄÚ²¿·ÃÎÊconst»òÕßstatic±äÁ¿»òÕß·½·¨,ÄÇô¾Í±ØÐëʹÓÃ×ÔÒýÓõ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ