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

ÈçºÎÔÚPHPÖд´½¨Êý×é

Ô­ÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/20100409/54.html
ÈçºÎÔÚPHPÖд´½¨Êý×éÄØ£¿
ÔÚPHPÖÐʹÓÃarrayº¯ÊýÀ´´´½¨Ò»¸öÊý×飬ËüÔÊÐíÒ»¶¨ÊýÁ¿ÓöººÅkey=>value²ÎÊý¡£Key¿ÉÒÔÊÇinteger»òÕßstringÀàÐÍ£¬value¿ÉÒÔÊÇÈκÎÖµ¡£
ÀýÈ磺
 <?php
 $array = array(“php1″=>”phpdo”,2=>”www.phpdo.net”);
 echo $array["php1"];
 echo ‘<br>’;
 echo $array[2];
 ?>
½á¹û£º
phpdo
www.phpdo.net
Êý×éÓÐһάµÄÒ²ÓжþάµÄ£¬ÈçºÎÔÚPHPÖд´½¨¶þάÊý×éÄØ£¿
û´í¡£¾ÍÊÇÈÃһάÊý×éµÄÔªËØÒ²³ÉΪһ¸öÊý×é¡£
ÀýÈ磺
 <?php
 $array = array(“php1″ =>array(0 =>”php”,1 =>”phpdo”),”php2″ =>array(0=>”phpdo.net”,1=>”www.phpdo.net”));
 echo $array["php1"][0];
 echo “<BR>”;
 echo $array["php1"][1];
 echo “<BR>”;
 echo $array["php2"][0];
 echo “<BR>”;
 echo $array["php2"][1];
 ?>
½á¹û£º
php
phpdo
phpdo.net
www.phpdo.net
ÔÚʵ¼Ê±à³ÌÖв»¿ÉÄÜÏñÕâ¸öÀý×ÓÒ»ÑùʹÓÃÈç´Ë¶àµÄecho£¬ÕâÑù»áʹ´úÂë±äµÃºÜ³¤¡£
ÔÚPHPÖÐÓÐÁ½¸öÊä³öÓï¾ä£ºechoºÍprint¡£
¶øprint_RÊÇÓÃÀ´Êä³öÊý×éµÄ¡£
ÀýÈ磺
 <?php
 $array = array(“php1″ =>array(0=>”php”,1=>”phpdo”),”php2″=>array(0=>”phpdo.net”,1=>”www.phpdo.net”));
 print_r($array);
 ?>
½á¹û£º
Array ( [php1] => Array ( [0] => php [1] => phpdo ) [php2] => Array ( [0] => phpdo.net [1] => www.phpdo.net ) )


Ïà¹ØÎĵµ£º

PhpÅжÏÓû§Í¨¹ýÊÖ»ú·ÃÎÊwap»¹ÊǵçÄÔÖ±½Ó·ÃÎÊ

Ê×ÏÈ˵×î¸ù±¾µÄ½â¾ö·½·¨£º
ÊÖ »ú·ÃÎÊʱ£¬»á¸½´ø·¢ËÍuser-agentÐÅÏ¢£¬Õâ¸öÐÅÏ¢ÀïÃæ»áÓÐÊÖ»úºÅÂëÐÅÏ¢£¬ÄÇôÈç¹ûÄÜÈ¡µÃÊÖ»úºÅÂ룬Ôò¿ÉÒԿ϶¨ÊÇͨ¹ýÊÖ»úwap·ÃÎʵġ£µ«ÊÇÄ¿Ç°ÖÐ ¹úÒƶ¯ÒѾ­ÆÁ±ÎÁËuser-agentÐÅÏ¢£¬ËùÒÔ»ñÈ¡²»µ½ÊÖ»úºÅÂë¡£ÓйØϵµÄÅóÓÑ¿ÉÒÔÁªÏµÒƶ¯¹«Ë¾£¬°ÑwapÍøÕ¾·þÎñÆ÷µÄipÌá½»¸øÖйúÒƶ¯£¬¼ÓÈë°×Ãûµ¥ ºó¼´¿ÉÈ¡µ ......

PHPÖÐÄÚ²¿º¯ÊýʹÓ÷½·¨

<?php
 
 
  //»ñµÃϵͳʱ¼äº¯Êý(×¢Òâ²ÎÊýÖдóдY´ú±íÍêÕûÄê·Ý£¬Ð¡Ð´y´ú±íÄê·Ý¼òд)
  $sum = date("Y-m-d");
  $sum1 = date("y-m-d");
 
  echo "$sum<br/>";
  echo "$sum1<br/>";
 
  //md5¼ÓÃܺ¯Êý
  $pass = md5("ÕÅÈý");
  ......

[php]how to confirm deleting without using form.

<html>
<head>
<script type="text/javascript">
<!--
function confirmDelete()
{
    return confirm("Are you sure you wish to delete this entry?");
}   
//-->
</script>
</head>
<body>
<% $var1 = 2;%> ......

php ½âÎö excel ´æ´¢µ½ mysql ÂÒÂë


±àÂëÊǸöºÜ»ù´¡µÄÎÊÌ⣬ҲÊÇ´ó¼ÒºÜÈÝÒ׺öÂÔµÄÎÊÌ⣬д´úÂë֮ǰ¶à¶à¿¼ÂÇ£¬ÒÔºó»áÉٺܶàÂé·³¡£
PHP·¢Õ¹Á˲»ÉÙ£¬ÏÖÔÚpearÓÃÆðÀ´ºÜ·½±ã£¬ÆäÖоÍÓÐÏà¹ØµÄclassÀ´¶ÁÈ¡ExcelÎļþÀïÃæµÄÄÚÈÝ£¬Èç¹û²»ÏëʹÓÃpearµÄ»°£¬¿ÉÒÔ¿¼ÂÇʹÓÃexcel_class.php£¬googleһϣ¬¿ÉÒÔÕÒµ½Õâ¸öclassµÄsource codeÏÂÔØ£¬Ò²ÄÜÕÒµ½»ù±¾µÄexample c ......

ÎÒµÄphpµÄѧϰ

<?
class upload{
private $name;                 //$_FILES['file'][name]
private $type;                 //$_FILES['file'][type]
privat ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ