PHPÎÞÏÞÌݹé
<?php
class Tree
{
// public $data=array();//ËùÓнڵãÖµ
// public $cateArray=array();//ËùÓи¸½Úµã
function Tree()
{
}
//setNode(Ŀ¼ID,Éϼ¶ID£¬Ä¿Â¼Ãû×Ö);
function setNode ($id, $parent, $value){
$parent = $parent?$parent:0;
$this->data[$id] = $value;//»ñÈ¡µ±Ç°ID¶ÔÓ¦µÄµ±Ç°Ä¿Â¼Ãû
$this->cateArray[$id] = $parent;//»ñÈ¡µ±Ç°ID¶ÔÓ¦µÄ¸¸·ÖÀàID
//echo $id."->".$this->cateArray[$id]."--".$this->data[$id]."<br>";
}
function getChilds($id=0)
{
$childArray=array();
$childs=$this->getChild($id);
foreach ($childs as $child)
{
$childArray[]=$child;
$childArray=array_merge($childArray,$this->getChilds($child));//id µÝ¹é ÀÛ¼Ó
}
return $childArray;
}
function getChild($id)
{
&nbs
Ïà¹ØÎĵµ£º
»·¾³Èí¼þ°æ±¾½éÉÜ£º
APACHE 2.0.59
PHP5.2.3
MYSQL5.0.45
GD-2.0.35
Zend Optimizer v3.3.0
&n ......
Ò»¡¢¹æ·¶Ç°ÑÔÆª
±ê×¼»¯²»ÊÇÌØÊâµÄ¸öÈË·ç¸ñ£¬ËüÈóÌÐòÔ±¿ÉÒÔÁ˽âÈκδúÂ룬ŪÇå³ÌÐòµÄ×´¿ö£»ÐÂÈË¿É
ÒԺܿìµÄÊÊÓ¦»·¾³£»·ÀֹнӴ¥phpµÄÈËÒ»´Î´ÎµÄ·¸Í¬ÑùµÄ´íÎó£»ÔÚÒ»ÖµĿª·¢»·¾³Ï£¬
¿ÉÒÔ¼õÉÙÈËÃÇ·¸´íµÄ»ú»á¡£±¾¹æ·¶µÄ±ê×¼ÔÚ¾ø¶Ô¶àÊýÓ¦ÓÃÉÏΪ·ÂÕÕjava¼¼ÊõÌåϵ£¬ÒòΪ
java¼¼ÊõÌåϵÒÔÆäÖÚ¶à³É¹¦µÄ°¸Àý³ÉΪ´ó²¿·Ö¼ÆËã»úÓ¦Ó ......
class runtime
{
var $StartTime = 0;
var $StopTime = 0;
function get_microtime()
{
list($usec, $sec) = explode(' ', microtime());
return ((float)$usec + (float)$sec);
}
function start()
{
$this->StartTime = $this->ge ......
ÔÚ×öºªµ¦·¿²úÍøµÄʱºòÓöµ½php»ñÈ¡checkboxµÄÎÊÌ⣺asp»ñÈ¡±íµ¥Öеĸ´Ñ¡¿òµÄÖµ£¬Ö±½Ó¾ÍÊÇÒÔ“,”£¨¶ººÅ£©Îª·Ö¸ô·ûµÄÊý×é¡£phpÖÐÈ·×ÜÊÇÖ»»ñÈ¡×îºóÒ»¸ö¸´Ñ¡¿òµÄÖµ¡£
½â¾ö°ì·¨£º
form±íµ¥µÄ²¿·Ö´úÂ룺
<input type="checkbox" name="frm_tag[]" id="frm_tag" value="1">1
<input type="checkbox" name=" ......