Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : php

PHP UUIDµÄÉú³ÉÔ´Âë

ÏÖÔÚºÃ¶àµØ·½¶¼ÓÃUUID£¬±ÈÈçÊý¾Ý¿âµÄ¸ö×Ô¶¯µÄUUID
UUID½á¹¹ÈçÏ£¨¶¼ÎªÊ®Áù½øÖÆ×Ö·û£©
XXXXX
XXX£­XXXX£­XXXX£­XXXX£­XXXXXXXXXXX
Ñо¿ÆäÉú³ÉʵÏÖ¹ý³Ì²Å·¢ÏÖ£¬Ô­À´ÊÇÕâÑùµÄ
1¡¢ÌáÈ¡µ±Ç°Ê±ºòÖµºÍʱ¼ä´Á
2¡¢°ÑÕâÁ½¸öֵת»»³ÉÊ®Áù½øÖÆ
3¡¢È¡Ê±¼äÖµºÍʱ¼ä´ÁµÄǰ5ºÍʱ¼äÖµµÄǰÁùλ
4¡¢Éú³ÉÒ»¸öÈýλµÄÊ®Áù½øÖÆ£¬Èý¸öËÄλµÄÊ®Áù½øÖƺÍÒ»¸öÎåλµÄÊ®Áù½øÖÆ
5¡¢ÒÀ¾ÝÉÏÃæµÄ½á¹¹×é³ÉUUID
PHP´úÂëÈçÏÂ
function create_guid()
{
$microTime = microtime();
list($a_dec, $a_sec) = explode(" ", $microTime);
$dec_hex = dechex($a_dec* 1000000);
$sec_hex = dechex($a_sec);
ensure_length($dec_hex, 5);
ensure_length($sec_hex, 6);
$guid = "";
$guid .= $dec_hex;
$guid .= create_guid_section(3);
$guid .= '-';
$guid .= create_guid_section(4);
$guid .= '-';
$guid .= create_guid_section(4);
$guid .= '-';
$guid .= create_guid_section(4);
$guid .= '-';
$guid .= $sec_hex;
$guid .= create_guid_section(6);
return $guid;
}
function create_guid_section($characters)
{
$return = "";
for($i=0; $ ......

phpʵÏÖÒ»¸öÈÕÀúÀà

<?php
 date_default_timezone_set("Etc/GMT-8");
 header("content-type:text/html; charset=utf-8");
 /**
  * ×Ô¼º¶¨ÒåµÄÒ»¸öÉú³ÉÈÕÀúµÄÀà
  * @author ÕÅΰ²Ó<yuanfen860913@163.com>
  * @version 1.0.0
  *
  */
 class myCalendar
 {
  /**
   * ¶¨Òåÿ¸öÔ¶àÉÙÌ졾²»ÊÇÈðÄêµÄ¡¿
   *
   * @var array
   */
  private $howManyDayPreMonth1=array(
   1=>31,
   2=>28,
   3=>31,
   4=>30,
   5=>31,
   6=>30,
   7=>31,
   8=>31,
   9=>30,
   10=>31,
   11=>30,
   12=>31,
  );
  /**
   * ¶¨Òåÿ¸öÔ¶àÉÙÌ졾ÈðÄêµÄ¡¿
   *
   * @var array
   */
  private $howManyDayPreMonth2=array ......

phpÏÔʾʱ¼ä´úÂë

Ò»¡¢PHPº¯ÊýDate()»ñÈ¡µ±Ç°Ê±¼ä
´úÂ룺
<?php echo $showtime=date("Y-m-d H:i:s");?>
ÏÔʾµÄ¸ñʽ: Äê-ÔÂ-ÈÕ Ð¡Ê±:·ÖÖÓ:Ãë
Ïà¹Ø²ÎÊý£º
a£º"am"»òÕß"pm"
A£º"AM"»òÕß"PM"
d£º¼¸ÈÕ£¬¶þλÊý×Ö£¬Èô²»×ã¶þλÔòÇ°Ãæ²¹Á㣬Èç: "01"ÖÁ"31"
D£ºÐÇÆÚ¼¸£¬Èý¸öÓ¢ÎÄ×Öĸ£¬Èç: "Fri"
F£ºÔ·ݣ¬Ó¢ÎÄÈ«Ãû£¬Èç: "January"
h£º12 Ð¡Ê±ÖÆµÄСʱ£¬Èç: "01"ÖÁ"12"
H£º24 Ð¡Ê±ÖÆµÄСʱ£¬Èç: "00"ÖÁ"23"
g£º12 Ð¡Ê±ÖÆµÄСʱ£¬²»×ã¶þλ²»²¹Á㣬Èç: "1"ÖÁ12"
G£º24 Ð¡Ê±ÖÆµÄСʱ£¬²»×ã¶þλ²»²¹Á㣬Èç: "0"ÖÁ"23"
i£º·ÖÖÓ£¬Èç: "00"ÖÁ"59"
j£º¼¸ÈÕ£¬¶þλÊý×Ö£¬Èô²»×ã¶þλ²»²¹Á㣬Èç: "1"ÖÁ"31"
l£ºÐÇÆÚ¼¸£¬Ó¢ÎÄÈ«Ãû£¬È磺"Friday"
m£ºÔ·ݣ¬¶þλÊý×Ö£¬Èô²»×ã¶þλÔòÔÚÇ°Ãæ²¹Á㣻Èç: "01"ÖÁ"12"
n£ºÔ·ݣ¬¶þλÊý×Ö£¬Èô²»×ã¶þλÔò²»²¹Á㣻È磺"1"ÖÁ"12"
M£ºÔ·ݣ¬Èý¸öÓ¢ÎÄ×Öĸ£»È磺"Jan"
s£ºÃ룻È磺"00"ÖÁ"59"
S£º×Öβ¼ÓÓ¢ÎÄÐòÊý£¬¶þ¸öÓ¢ÎÄ×Öĸ£»È磺"th"¡¢"nd"
t£ºÖ¸¶¨Ô·ݵÄÌìÊý£»È磺"28"ÖÁ"31"
U£º×ÜÃëÊý
w£ºÊý×ÖÐ͵ÄÐÇÆÚ¼¸£¬Èç: "0"£¨ÐÇÆÚÈÕ£©ÖÁ"6"£¨ÐÇÆÚÁù£©
Y£ºÄ꣬ËÄλÊý×Ö£»È磺"1999"
y£ºÄ꣬¶þλÊý×Ö£»È磺"99"
z£ºÒ»ÄêÖеĵڼ¸Ì ......

phpÏÔʾ·þÎñÆ÷ʱ¼ä´úÂë

<div id="time" align="center">time </div> 
<script language="javascript">
function time1()
{
var now,n,y,r,h,m,s;
now=new Date();
n = now.getYear();
y = now.getMonth()+1;
r = now.getDate();
h = now.getHours();
m =now.getMinutes();
s = now.getSeconds();
if(y <10) y="0"+y;
if(r <10) r="0"+r;
if(h <10) h="0"+h;
if(m <10) m="0"+m;
if(s <10) s="0"+s;
document.getElementById("time").innerHTML="ÏÖÔÚʱ¼äÊÇ£º"+ n + "-" + y + "-" + r + " "+ h + ":" + m + ":" + s;
setTimeout("time1();", 1000);
}
time1();
</script> ......

phpÖÐsubstrµÄÓ÷¨Ïê½â

phpÖÐsubstrµÄÓ÷¨Ïê½â
php.netÖйØÓÚsubstrµÄ˵Ã÷ºÜ¼òµ¥:
start
If start is non-negative, the returned string will start at the start 'th position in string , counting from zero. For instance, in the string 'abcdef', the character at position 0 is 'a', the character at position 2 is 'c', and so forth.
If start is negative, the returned string will start at the start 'th character from the end of string .
length
If length is given and is positive, the string returned will contain at most length characters beginning from start (depending on the length of string ). If string is less than or equal to start characters long, FALSE will be returned.
If length is given and is negative, then that many characters will be omitted from the end of string (after the start position has been calculated when a start is negative). If start denotes a position beyond this truncation, an empty string will be returned.
ÏÂÃæ£¬ÎÒÏêϸ×ܽáһϹØÓÚsubstrµÄÏà¹ØÓ÷¨£º
Ô­ÐÍ£ºstring substr ( string $stri ......

PHP¶àÓïÑÔϵͳµÄÒ»ÖÖʵÏÖ·½Ê½[ת]


ÔÚÍøÕ¾Éè¼ÆÖÐÎÒÃǾ­³£»áÓöµ½ÐèÒª¶àÓïÑÔÖ§³ÖµÄÇé¿ö¡£¶àÓïÑÔϵͳ°´ÕÕÖ§³ÖµÄ·½Ê½Ò»°ã¿É·ÖΪÁ½ÖÖ£º
1.Ö§³Ö¶àÓïÑÔ£¬µ«²»Ö§³Ö¶àÖÖÓïÑÔµÄͬʱ´æÔÚ£¬Ò²¾ÍÊÇ˵ҪôÊÇÖÐÎÄҪôÊÇÓ¢ÎÄ»òÕ߯äËû£¬ÕâÔÚһЩÐèÒª¹ú¼Ê»¯Ö§³ÖµÄÍøÒ³ÏµÍ³Öо­³£ÓÃÀ´£¬ÒԱ㷽±ãÓû§±¾µØ»¯¡£ 2.Ö§³Ö¶àÓïÑÔ²¢¿Éͬʱä¯ÀÀ²»Í¬ÓïÑÔ°æ±¾µÄÍøÒ³¡£½ñÌìÎÒÏëÌÖÂÛµÄÊǵڶþÖÖ£¬Êµ¼ÊÉϵڶþÖÖÒ²ÊÇÔÚµÚÒ»ÖֵĻù´¡ÉÏ·¢Õ¹À´µÄ¡£ÏÂÃæÊÇÎÒÔÚʵ¼ÊµÄÒ»¸öÏîÄ¿ÖÐÓ¦ÓöàÓïÑÔ¼¼ÊõµÄ´óÌå¿ò¼Ü¡£µ±Óû§Ñ¡ÔñijÖÖÓïÑÔʱ£¬ÎÒÃÇÈçºÎÏÔʾ¸ÃÓïÖÖ°æ±¾µÄÍøÕ¾£¿¶ÔÓÚÿÖÖÓïÑÔ¶¼Ð´Ò»¸ö°æ±¾ÎÒÕâÀï¾Í²»ËµÁË£¬ÄÇ¿ÉÄÜÊÇ×îÈÃÈËÂîÄïµÄ·½·¨ÁË¡£ ÎÒÕâÀï²ÉÓõÄÊÇÄ£°åÒýÇæÀ´ÊµÏֵģºÊ¹ÓÃÄ£°åÍøÒ³ÄÚËùÓеÄÎÄ×Ö¡¢Í¼Æ¬µÈ¶¼ÉèÖóɿÉÌæ»»µÄ±äÁ¿±êÇ©£¬µ±Óû§ä¯ÀÀʱÔò¿É¸ù¾Ý´«µÝ¹ýÀ´µÄÓïÑÔ²ÎÊý°üº¬ÏàÓ¦µÄÓïÑÔ°ü£¬×îºó½âÎöÒ»ÏÂÄ£°å¼´¿É¡£Èç¹û¶ÔÓÚÄ£°åÒýÇæ²»ÊǺÜÁ˽⣬ÇëÏÈ¿´¿´Ä£°å·½ÃæµÄ½éÉÜÎÄÕ¡£
ÏîÄ¿Îļþ½á¹¹ÈçÏ£º
Admin          ----------ºǫ́¹ÜÀíÎļþ¼Ð
Class           ----------ÏîÄ¿ÖÐËùÓеÄÀà
Template    ......
×ܼǼÊý:2174; ×ÜÒ³Êý:363; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [309] [310] [311] [312] 313 [314] [315] [316] [317] [318]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ