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

php arrayһЩº¯Êý

ÎÒÃÇÊÖÍ·µÄPHP×ÊÁϲ»¶à£¬´ó¼ÒÊDz»ÊǶ¼ÓÐÒ»·Ýphp4gb.chm¡£ÎÒ×îÐÀÉÍËüÀïÃæµÄº¯Êý¿â²¿·ÖÁË£¬ÕæÕýµÄÔÚÏß°ïÖú¡£µ«ÊÇPHP·¢Õ¹µÄ½Å²½ÊµÔÚÌ«¿ìÁË£¬Äãî¡£¬ÎÒ×î½üÔÚwww.php.net/manual/¡¡ÓÖÕÒµ½ÁËһЩÀ©Õ¹µÄÊý×麯Êý¡£
ÏÂÃæÎÒ°ÑËüÃǽéÉܸø´ó¼Ò°É£¬ÎÒµÄÓ¢ÎÄˮƽ²»¸ß£¬ÓÐÒëµÄ²»¶ÔµÄµØ·½£¬ÇëÖ¸Õý¡£
¸ñʽÊÇÕâÑùµÄ£º
º¯ÊýÃû Ö§³Ö°æ±¾
º¯ÊýÉùÃ÷
˵Ã÷¼°²ÎÊý¡¢·µ»ØÖµ
Àý×Ó
OK£¬Let's go.
//*************************
array_flip (PHP4 >= 4.0b4)
array array_flip (array trans)
½«Êý×étransµÄkey¡¢value½»»»£¬¾ÍÊÇkey±ävalue£¬¶øvalue±äkeyÁË¡£
·µ»ØÍê³É´¦ÀíµÄÊý×é¡£
Àý£º
$a[0]="abc";
$a[1]="def";
After an array_flip() you get:
$a["abc"]=0; $a["def"]=1;
//***************************
array_count_values (PHP4 >= 4.0b4)
array array_count_values (array input)
ͳ¼ÆinputÊý×éÖи÷¸öÖµµÄ¸öÊý¡£·µ»ØÒ»¸öÊý×飬ÒÔinputµÄÖµ×öΪkey£¬ÒÔ³öÏÖ¸öÊýΪvalueµÄÐÂÊý×é¡£
Àý£º
$array = array (1, "hello", 1, "world", "hello");
array_count_values ($array);
// returns array (1=>2, "hello"=>2, "world"=>1)
//*****************************
array_merge (PHP4 )
array array_merge (array array1, array array2 [, array ...])
ºÏ²¢¶à¸öÊý×飬°Ñarray2µÄÄÚÈݼÓÔÚarray1µÄºóÃæ¡£·µ»Ø½á¹ûÊý×é¡£
Èç¹ûÊǹØÁªÊý×飬ÒÔ×Ö´®Îªkey£¬³öÏÖͬÃûµÄkey£¬ÔòºóÃæµÄ»á¸²¸ÇÇ°ÃæµÄ£¬¶øϱêÊý×é²»»á³öÏÖ¸²¸ÇµÄÏÖÏó£¬Ö»ÊÇÌí¼ÓÔÚºóÃæ¡£
Àý£º
$array1 = array ("color" => "red", 2, 4);
$array2 = array ("a", "b", "color" => "green", "shape" => "trapezoid", 4);
array_merge ($array1, $array2);
//Resulting array will be array("color" => "green", 2, 4, "a", "b", "shape" => "trapezoid", 4).
See also array_merge_recursive().
//******************************
array_merge_recursive (PHP4 >= 4.0.1)
array array_merge_recursive (array array1, array array2 [, array ...])
µÝ¹éºÏ²¢Êý×飬ÓëÉϸöº¯Êý»ù±¾ÀàËÆ¡£Çø±ðÔÚÓÚ£¬ÔÚ¹ØÁªÊý×é·½Ã棬Ëü²»ÊǼòµ¥µØ°ÑÏàͬµÄkeyºÏ²¢£¬»¹ÊÇÉú³ÉÒ»¸ö¶þάÊý×éÀ´ºÏ²¢ÕâÏàͬkeyµÄvalue¡££¨±í´ï²»Ç壬²»ºÃÒâ˼£¬¿´Àý×Ó°É£©¡£
Àý£º
$ar1 = array ("color" => array ("favorite" => "red"), 5);
$ar2 =


Ïà¹ØÎĵµ£º

PHP±ÈASPÓÅÐãµÄÆ߸öÀíÓÉ ÄÏÈý·½

ASPÊÇ΢Èí¹«Ë¾ÊµÏÖ¶¯Ì¬ÍøÒ³µÄÒ»ÖÖ¼¼Êõ¡£
ASPÖ§³ÖһЩ½Å±¾ÓïÑÔ£¬Ö÷ÒªÒÔVBScriptΪÖ÷¡£
ÓëASPÏà±È½Ï£¬Ä㻹¿ÉÒÔÑ¡ÔñÁíÒ»Öпª·ÅÔ´´úÂë±à³ÌÓïÑÔ——PHP£¬PHP¿ÉÒÔÔËÐÐÔÚ¶àÖÖ²Ù×÷ϵͳÏ£¬ÆäÖаüÀ¨LinuxºÍwindows¡£
ËäÈ»ASPÊÇÒ»ÖÖ²»´íµÄ¼¼Êõ£¬µ«´Ó³¤Ô¶¿¼ÂÇÎÒÏàÐÅPHPÔÚ½«À´µÄ¼¼ÊõÁìÓòÀï»áÓв»·²µÄ±íÏÖ¡£
ÎÒÈÏΪÓÐÆ߸ ......

phpѧϰ±Ê¼Ç£¨8£©:PHPº¯ÊýºÍ×Ô¶¨Ò庯Êý


1¡¢PHPº¯Êý½éÉÜ
PHPº¯Êý·ÖΪ£ºÏµÍ³ÄÚ²¿º¯Êý ºÍ ×Ô¶¨Ò庯Êý 
¸ñʽ£ºFunction($a1,$s2....){};
Àý×Ó£ºdate("Y-m-d");
          Md5("CHAUVET");
º¯ÊýµÄÓÅÔ½ÐÔ£º
A)¿ØÖƳÌÐòÉè¼ÆµÄ¸´ÔÓÐÔ
B)Ìá¸ßÈí¼þµÄ¿É¿¿ÐÔ
C)Ìá¸ßÈí¼þ¿ª·¢Ð§ÂÊ
D)Ìá¸ßÈí¼þµÄ¿É ......

PHPÔ´Âë½âÎö£¨Ò»£©

PHPÔ´´úÂë·ÖÎö
µ±Ç°°æ±¾PHP5.3.1
Ŀ¼½á¹¹
build ºÍ±àÒëÓйصÄĿ¼¡£
ext À©Õ¹¿â´úÂ룬ÀýÈç Mysql¡¢zlib¡¢iconv µÈÎÒÃÇÊìϤµÄÀ©Õ¹¿â¡£
main Ö÷Ŀ¼¡£
netware
pear
sapi ºÍ¸÷ÖÖ·þÎñÆ÷µÄ½Ó¿Úµ÷Óã¬ÀýÈçapache¡¢IISµÈ£¬Ò²°üº¬Ò»°ãµÄfastcgi¡¢cgiµÈ¡£
scripts Linux ϵĽű¾Ä¿Â¼¡£
tests ²âÊԽű¾Ä¿Â¼
TSRM
win32 ......

¡¾×ª¡¿¸ß¼¶PHPÓ¦ÓóÌÐò©¶´ÉóºË¼¼Êõ




×÷ÕߣºPh4nt0m Security Team
À´Ô´£ºhttp://www.ph4nt0m.org-a.googlepages.com/PSTZine_0x03_0x06.txt
==Ph4nt0m Security Team==

Issue 0x03, Phile #0x06 of 0x07

|=---------------------------------------- ......

PEAR¼ò½é:ÓÃPEARÀ´Ð´ÄãµÄÏÂÒ»¸öphp³ÌÐò


PEAR¼ò½é:ÓÃPEARÀ´Ð´ÄãµÄÏÂÒ»¸öphp³ÌÐò
 
ÎĵµÑ¡Ïî
´òÓ¡±¾Ò³
½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ
¼¶±ð£º ³õ¼¶
ÅË·²(Night Sailer) (nightsailer@hotmail.com), ¹¤³Ìʦ, ±±¾©ÈüµÏÊý¾ÝÓÐÏÞ¹«Ë¾
2001 Äê 6 ÔÂ 01 ÈÕ
Äã¿ÉÄÜÒѾ­ÊǸöPHPµÄÀÏÊÖÁË£¬Ð´Á˺ܶà·Ç³£°ôµÄ´úÂë¡£µ«ÊÇ£¬Èç¹ûÄãÏÖÔÚÒª°ÑËüÃǼÓÈëµ½ÄãÏÖÔÚµÄÏîÄ¿ÖÐÈ¥£¬ÊÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ