
|class| ^^##{##	##}|##<?php##	 ##	{##		  ()##		{##		     ",";##		}##		˽  2()##		{##			 "˽е";##		}##	}##	##	$ =  ();##	$->();##?>
|new|||
|public|||
˽|private|||
Ϊ|true|||
Ϊ|false|||
|if| (^^)##{####}|жϡ##echo (4>3) ? :С;
|else|##{##	^^##}|ж
|echo| "^^";||
|return||
|function| ^^()##{####}||
ж|switch| ()|switch ($x)##{##case 1:##  echo "Number 1";##  break;##case 2:##  echo "Number 2";##  break;##case 3:##  echo "Number 3";##  break;##default:##  echo "No number between 1 and 3";##}##?>
֧|case|||
Ĭ|default|||
|elseif||
ƴѭ|for|||
ѭ|while|||
ѭ|break||ѭѭ
ѭβ|continue||ǰѭִС
ֵGET|_GET|not|$_GET['name']
ֵPOST|_POST|not|$_POST['name']
ֵREQUES|_REQUES|not|Ĭ° $_GET$_POST  $_COOKIE 顣####֮ǰREQUES


|array|1,2|
ȡԱ|count||飬Ԫصĸֵ 1Ǳûж壬򷵻 0 mode Ϊ COUNT_RECURSIVE 1ݹ׼άеԪظ####array	衣涨Ҫ##mode	##ѡ涨ģʽֵܵ##0 - Ĭϡά飨е飩##1 - ά顣##עͣò PHP 4.2 мġ

ļ
ļ|fopen|"ļ","򿪷ʽ"|򿪻򴴽һļ##ɹ һ¼, ȡļ ####"r"  ֻʽ򿪣ļָָļͷ ##"r+" дʽ򿪣ļָָļͷ ##"w"  д뷽ʽ򿪣ļָָļͷļСΪ㡣ļԴ֮ ##"w+" дʽ򿪣ļָָļͷļСΪ㡣ļԴ֮ ##"a"  д뷽ʽ򿪣ļָָļĩβļԴ֮ ##"a+" дʽ򿪣ļָָļĩβļԴ֮ ##"x"  д뷽ʽ򿪣ļָָļͷļѴڣ fopen() ʧܲ FALSEһ E_WARNING ĴϢļԴ֮##"x+" Զдʽ򿪣ļָָļͷļѴڣ fopen() ʧܲ FALSEһ E_WARNING ĴϢļԴ֮
ȡ|fgets|ļ|ȡļݡ##ɹ ı
дļ|fwrite|ļ,"д"|дļ
رļ|fclose|ļ|رһ򿪵ļԴ
ɾļ|unlink|ļ|ɾһļ
ļ|include|"ļ"|һļ
ļ|file_get_contents|"ļ"|÷##file_get_contents() ļһַС## file() һͬ file_get_contents() ļһַ##file_get_contents() ڽļݶ뵽һַеѡϵͳ֧֣ʹڴӳ似ǿܡ##﷨##file_get_contents(path,include_path,context,start,max_length)##	##path	衣涨Ҫȡļ##include_path	ѡҲ include_path ѰļĻԽòΪ "1"##context	##ѡ涨ļĻ##context һ׿޸Ϊѡʹ nullԡ##start	ѡ涨ļпʼȡλáò PHP 5.1 ¼ӵġ##max_length	ѡ涨ȡֽò PHP 5.1 ¼ӵġ
ļ_󱨴|require|"ļ"|require  (E_COMPILE_ERROR)ֹͣű####PHP include  require #### PHP Уܹڷִ PHP ļ֮ǰѸļһ PHP ļС##include  require ִļõĵĴ롣##include  require ƣڴĲ죺##    require  (E_COMPILE_ERROR)ֹͣű##    include ֻ (E_WARNING)ű##ˣϣִУûʹļѶʧôʹ includeڿܡCMS ߸ӵ PHP ӦóУʼʹ require ִùؼļӦóİȫԺԣĳؼļⶪʧ¡##ļʡȥ˴ĹζΪҳ洴׼ҳͷҳŻ߲˵ļȻҳͷҪʱֻҳͷļɡ
ļ_һ|require_once|"ļ"|ֻһΣѾãá
ļ|filetype||ļͣ磺dir / file /link
ļ|stat||ָļĿļ $stt = stat('test.txt'); print_r ($stt); 
|clearstatcache||
Ƿִ|is_executable||жļǷִ
ڻļ|is_dir||жǷڻļ
Ƿļ|is_file||жǷļ
ɨĿ¼|scandir||ļ / һ

ı
滻|str_replace|"滻ı","滻ı","ԭʼı"|ʹһַ滻ַеһЩַ####﷨##	##find	衣涨Ҫҵֵ##replace	衣涨滻 find еֵֵ##string	衣涨ַ##count	ѡһ滻м
|md5|"ı"|ɹ򷵻 MD5 ɢУʧܣ򷵻 false######string	衣涨Ҫַ##charlist	##ѡ涨ʮƻʽ####TRUE - ԭʼ 16 ַƸʽ##FALSE - Ĭϡ32 ַʮ####עͣò PHP 5.0 ӵġ
ָ|explode|"ָı","ԭʼı"|	##separator	衣涨ַָ##string	衣Ҫַָ##limit	ѡ涨صԪصĿ####ڱУǽַָΪ飺##<?php##$str = "Hello world. It's a beautiful day.";##print_r (explode(" ",$str));##?>####Array##(##[0] => Hello##[1] => world.##[2] => It's##[3] => a##[4] => beautiful##[5] => day.##)
ת|strrev||strrev() תַ####﷨##strrev(string)##	##string	衣涨Ҫתַ######<?php##echo strrev("Hello World!");##?>######!dlroW olleH
ȡ|strlen|"ı"||
ȡı|substr|"ı","ʼλ","λ"|substr(string,start,length)##string##衣涨Ҫһֵַ##start##衣涨ַĺδʼ## - ַָλÿʼ  - ڴַβָλÿʼ 0 - ַеĵһַʼ##length##ѡ涨ҪصַȡĬֱַĽβ## -  start ڵλ÷  - ַĩ˷##ӣ##<?php##echo substr("Hello world!",6);##?>##world!##echo substr("abcdef", 1, 3)// "bcd"[1]##echo substr("abcdef", -1); //  "f"##echo substr("abcdef", -2); // "ef"##echo substr("abcdef", -3, 1); // "d"##echo substr("abcdef", 1, -1); // "bcde"
Ѱı|strcspn|"ı","ı"|##strcspn(string,char,start,length)##	##string	衣涨Ҫַ##char	衣涨Ҫҵַ##start	ѡ涨ʼҵλáò PHP 4.3 ¼ӵġ##length	ѡ涨ַĳȣַò PHP 4.3 ¼ӵġ##ʾע##עͣúǶưȫġ####<?php##echo strcspn("Hello world!","w");##?>####6
ɾβ|trim|"ı"|ɾ!
ɾλ|trim|ı||
ָ|str_split||ַָ
ȡַ|iconv_substr||ȡַ
ȡλ|strcspn|"ı","ı"|÷##strcspn() ҵκַָ֮ǰַҵַɹλ,ʧܷıܳ####﷨##strcspn(string,char,start,length)##	##string	衣涨Ҫַ##char	衣涨Ҫҵַ##start	ѡ涨ʼҵλáò PHP 4.3 ¼ӵġ##length	ѡ涨ַĳȣַò PHP 4.3 ¼ӵġ##ʾע##עͣúǶưȫġ####<?php##echo strcspn("Hello world!","w");##?>####6
ȡִ|substr_count|"ı","ı"||


ݿ
|mysql_connect|"","ʺ",""|ݿ mysql_connect(ݿַû)##ʾ##<?php####	//һݿ##	$conn = @ݿ_('localhost','root','') ("");	// @ شor die ʾ ##	##	//ڶѡҪݿ##	@ݿ_ѡ('php',$conn) ('ڶ'.ݿ_()); 	// php ݿ, $conn ԴԲ÷##	ݿ_('sex name utf8');##	##	//,ȡ,(ȡ¼)##	$query = "select * from biao";##	$result = ݿ_($query) ('SQL'.ݿ_());####	//Ĳ¼ʾ##	(ݿ_ȡ($result,MYSQL_NUM));##	##	//һرݿ##	ݿ_ر();##?>
ѡ|mysql_select_db|"ݿ"|ѡݿ mysql_select_db(ݿ,$conn);
ر|mysql_close|"ݿ"|رݿ
|mysql_error||ݿʾ
|mysql_query|""|ݿ mysql_query("SQL")һ¼####    $sql = "select * from `dede_archives` where `title` not like '%¼%' ";##    $query = ݿ_("$sql");####ֵ##    mysql_query()  SELECTSHOWEXPLAIN  DESCRIBE ䷵һԴʶѯִвȷ򷵻 FALSE##͵ SQL 䣬mysql_query() ִгɹʱ TRUEʱ FALSE##     FALSE ķֵζŲѯǺϷĲִܹСⲢ˵κйӰ쵽Ļ򷵻صпһѯִгɹ˵δӰ쵽δκС
ȡ|mysql_fetch_array||$jilu = ݿ_ȡ_($query);
ȡ_|mysql_fetch_row|||
ȡ|mysql_affected_rows||ִгɹ򷵻ӰеĿһβѯʧܵĻ -1
ȡ2|mysql_num_rows||Դеint͡mysql_num_rows(Դ)####˵##mysql_num_rows() ؽеĿ SELECT ЧҪȡñ INSERTUPDATE  DELETE ѯӰ쵽еĿ mysql_affected_rows() 
ȡǰںʱ|NOW||صǰںʱ䡣 SELECT NOW(),CURDATE(),CURTIME()

ͼƬ
ͼƬ|imagecreatetruecolor|,߶|һԴļ
ȡͼƬ|imagecreatefromjpeg|"ͼƬ"|һͼʶ˴Ӹļȡõͼ
ɫ|imagecolorallocate|||
д|imagettftext|ļ,С,Ƕ,X,Y,ɫ,"·.ttf","дı"|д֡####ļ ͼ󴴽( imagecreatetruecolor())صͼԴ## ĳߴ硣##Ƕ ǶƱʾĽǶȣ0 ΪҶıֵʾʱת 90 ȱʾ϶ı##x##y##ɫ##·##дı
ͼƬ|imagecopy|ԭͼƬ,ͼ,ԭX,ԭY,X,Y,,|ͼƬϣ൱ˮӡܣ##˵##    ˵##dst_im    Ŀͼ##src_im    Դͼ##dst_x    Ŀͼʼ x ##dst_y    Ŀͼʼ y ꣬x,yͬΪ 0 Ͻǿʼ##src_x    ͼʼ x ##src_y    ͼʼ y ꣬x,yͬΪ 0 Ͻǿʼ##src_w     src_x ʼĿ##src_h     src_y ʼĸ߶
ͼƬ|imagejpeg|ļ|ͼƬԤɹʱ TRUE ʧʱ FALSE####ļ##    ļ·δûΪ NULLֱԭʼͼ##ͼƬ  ѡΧ 0ļС 100ļ󣩡##ע⣺##ͱͷ  image/jpeg##header('Content-Type: image/jpeg');
ͷͼƬ|imagedestroy|ļ|ͷ image ڴ档image ͼ񴴽صͼʶ


URL|urlencode||ַURL롣
URL|urldecode||ַURL롣
ת|mb_convert_encoding|"ı","ת","ԭ"|##mb_convert_encoding( $str, $encoding1,$encoding2 )[1]##$strҪתַ##$encoding1Ŀ룬utf-8,gbkСд##$encoding2ԭ룬utf-8,gbkСд##2ʵ1##༭####<?php##$str='';##echo mb_convert_encoding($str, "UTF-8"); //תΪutf-8##?>##3ʵ2##༭####<?php##$str='';##echo mb_convert_encoding($str, "UTF-8", "GBK"); //֪ԭΪGBKתΪutf-8##?>##4ʵ3##༭####<?php##$str='';##echo mb_convert_encoding($str, "UTF-8", "auto"); //δ֪ԭ룬ͨautoԶתΪutf-8##?>


ִ|preg_match|'ʽ',"ı",""|##_ִ("/<title>(.*)<\/title>/", $ı, $);
ִ|preg_match_all|||

ʱ
ȡʱ|date|ʽ,ʱ|ȡʱ䡣##    date('Y-m-d H:i:s', time());##    date('Y-m-d H:i:s', 1392136478);
תʱUnix|strtotime|ʱ|strtotime() κӢıʱΪ Unix ʱ##﷨##strtotime(time,now)##	##time	涨Ҫʱַ##now	㷵ֵʱʡԸòʹõǰʱ䡣##˵##úԤڽһӢڸʽַԽΪ Unix ʱ January 1 1970 00:00:00 GMT ֵ now ʱ䣬ûṩ˲ϵͳǰʱ䡣##úʹ TZ еĻʱ PHP 5.1.0 и׵ķʱеڣʱ亯˹ date_default_timezone_get() ҳ˵##ֵ##ɹ򷵻ʱ򷵻 FALSE PHP 5.1.0 ֮ǰʧʱ -1####<?php##echo(strtotime("now"));##echo(strtotime("3 October 2005"));##echo(strtotime("+5 hours"));##echo(strtotime("+1 week"));##echo(strtotime("+1 week 3 days 7 hours 5 seconds"));##echo(strtotime("next Monday"));##echo(strtotime("last Sunday"));##?>####1138614504##1128290400##1138632504##1139219304##1139503709##1139180400##1138489200


ó|define|"","ֵ"|һA,ֵΪ A define("A","A"); 
|print_r|$|ֻ
|unset|||
ǷΪ|empty||жǷΪ
Ƿ|is_array||жǷΪ
|or die|"ʾ"|ǰĺгʱֹʾ
_PHPҳ|header||PHPҳ
鿴PHPϢ|phpinfo||鿴PHPϢ
鿴|var_dump||鿴
Ƿ|isset||Ƿ,úصǸֵ,true/false
Ƿ|defined||ĳǷ
_session|session_start|| $_SESSION ֮ǰ####PHP Session ####һӦóʱЩģȻرһλỰ˭֪ʱӦó򣬲ںʱֹϣһ⣺֪˭Լʲô HTTP ַά״̬####ͨڷϴ洢ûϢԱʹãPHP session ⣨ûơƷȣỰϢʱģû뿪վ󽫱ɾҪôϢ԰ݴ洢ݿС####Session ĹǣΪÿߴһΨһ id (UID) UID 洢UID 洢 cookie Уͨ URL д######ʹ÷##//index.php##<?php##	_session();##	$_SESSION['name'] = 'nihao';##?>##//index2.php##<?php##	_session();##	$_SESSION['name'] = 'nihao';##?>
ٱ_session|session_destroy||ͨ session_destroy() ս session