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

PHP³£ÓÃ×Ö·û´®º¯ÊýÊÕ¼¯£¨60¸ö£©

1¡¢AddcSlashes ×Ö·û´®¼ÓÈ뷴бÏß
Óï·¨£ºstring addcslashes(string str,string charlist);
2¡¢AddSlashes ×Ö·û´®¼ÓÈ뷴бÏß
Óï·¨£ºstring addslashes(string str);
ÔÚÌض¨µÄ×Ö·ûÇ°¼Ó·´Ð±Ïߣº'¡¢"¡¢\¡¢NULL
3¡¢bin2hex ½«¶þ½øλת³ÉÊ®Áù½øλ
Óï·¨£ºstring bin2hex(string str);
4¡¢Chop È¥³ýÁ¬Ðø¿Õ°×,ͬrtrim()
Óï·¨:string chop(string str);
5¡¢Chr Chr¸ù¾ÝASCIIÖµ·µ»Ø×Ö·û
Óï·¨£ºstring chr(int ascii);
6¡¢chunk_split ½«×Ö·û´®·Ö³ÉС¶Î
Óï·¨£ºstring chunk_split(string string,int [chunklen],string [end]);
7¡¢convert_cyr_string ×Ö·û´®ÄÚÂëת»»
Óï·¨£ºstring convert_cyr_string(string str,string from,string to);
8¡¢count_chars ·µ»Ø×Ö·û´®µÄÐÅÏ¢
Óï·¨£ºmixed count_chars(string string,[mode]);
9¡¢crypt ·µ»Ø×Ö·û´®ÓÃDES±àÂë¼ÓÃÜ
Óï·¨£ºstring crypt(string str,string [salt]);
10¡¢echo ÏÔʾÄÚÈÝ
Óï·¨£ºecho(string arg1,string [argn].....);
11¡¢explode Çпª×Ö·û´®
Óï·¨£ºarray explode(string separator,string string);
12¡¢flush Çå³ýÊä³ö»º³åÇø
Óï·¨£ºoid flush(void);
13¡¢get_html_translation_table ·µ»Øº¯Êýhtmlspecialchars()¼°htmlentites()µÄ×Ö·ûת»»±í
Óï·¨£ºstring get_html_translation_table(int table);
14¡¢get_meta_tags ³é³öµµ°¸ËùÓÐmeta±ê¼ÇµÄ×ÊÁÏ
Óï·¨£ºarray get_meta_tags(string filename,int [use_include_path])
15¡¢htmlentities ½«ËùÓеÄ×ÖÔª¶¼×ªÃñHTML×Ö·û´®
Óï·¨£ºstring htmlentities(string string);
16¡¢htmlspecialchars ½«ÌØÊâ×ÖԪת³ÉHTML¸ñʽ
Óï·¨£ºstring htmlspecialchars(string string);
17¡¢implode ½«Êý×é±ä³É×Ö·û´®
Óï·¨£ºstring implode(string glue,array pieces);
18¡¢join ½«Êý×é±ä³É×Ö·û´®
Óï·¨£ºstring join(string glue,array,pieces);
19¡¢ltrim È¥³ýÁ¬Ðø¿Õ°×
Óï·¨£ºstring ltrim(string str);
20¡¢md5 ʹÓÃMD5¶Ô×Ö·û´®´¦Àí
Óï·¨£ºstring md5(string str);
21¡¢Metaphone ·µ»Ø×Ö·û´®µÄ¶ÁÒôÖµ
Óï·¨£ºstring metaphome(string str);
22¡¢nl2br ½«»»ÐÐ×ÖԪת³É<br>
Óï·¨£ºstring nl2br(string string);
23¡¢Ord È¡µÃ×Ö·ûµÄASCIIÂëÖµ
Óï·¨£ºint ord(string string);
24¡¢parse_str(string str);
Óï·¨£ºvid parse_str(string str)
25¡¢print Êä³ö×Ö·û´®
Óï·¨£ºprint(string arg);
26¡¢printf Êä³ö¸ñʽ»¯×Ö·û´®
Óï·¨


Ïà¹ØÎĵµ£º

php variable circular reference ·­Òë

    Ñ­»·ÒýÓÃÒ»Ö±ÊÇPHP£¨Ó¦Óã©ÖÐÒ»¸öÍ»³öµÄÎÊÌâ¡£ÎÊÌâµÄ³öÏÖÊÇÓÉÓÚÕâÑùµÄÒ»¸öÊÂʵ£ºPHPΪphpÄÚ²¿±äÁ¿Ê¹ÓÃÒ»¸ö“ÒýÓüÆÊýÆ÷”ÄÚ´æ·ÖÅä»úÖÆ¡£ÕâÒ»»úÖƶÔһЩÏà±ÈÀ´Ëµ½Ï³¤Ê±¼äÔËÐеĽű¾£¨±ÈÈ磬ӦÓ÷þÎñÆ÷»òÕßeZ²âÊÔ×é¼þ£©»áÒý·¢ÎÊÌ⣬ÒòΪÄÚ´æÔڽű¾½áÊøǰʲ»»á±»ÊͷŵôµÄ¡£µ«ÊÇ£¬£¨¼¸ºõ£©Ã»ÓÐÈË ......

php mysql»Ø¹öʾÀý

Ê×ÏÈ£¬½¨InnoDBÀàÐÍµÄ±í£¬²ÅÄÜÖ§³ÖÊÂÎñ
$handler = mysql_connect('localhost', '', '');
mysql_select_db('test');
mysql_query('SET AUTOCOMMIT=0'); // ÉèÖÃΪ²»×Ô¶¯Ìá½»²éѯ
mysql_query('START TRANSACTION'); // ¿ªÊ¼²éѯ£¬ÕâÀïÒ²¿ÉÒÔʹÓÃBEGIN
mysql_query("INSERT INTO users VALUES ('ccc')");
mysql_query( ......

php Öеĵ¥ÒýºÅ Ë«ÒýºÅ ·´ÒýºÅµÄ×÷ÓÃ

×Ö·û´®µÄд·¨
×Ö·û´®ÒÔµ¥¡¢Ë«»òµ¹ÒýºÅΧס·Ö±ðÓв»Í¬µÄÒåÒâ¡£
µ¥ÒýºÅ
ÀýÈ磺
$str = 'An apple a day keeps the docter away.'
µ±×Ö·û´®³öÏÖ ' ·ûºÅʱ£¬±ØÐë¼ÓÉÏ£º
'I'm wing'
Ó¦¸Ä³É£º
'I'm wing'
²Å¶Ô£¬ÆäÖÐ ' ¼´³ÆΪÌøÍÑ×Ö·û (escape character)¡£
Ë«ÒýºÅ
ÒÔË«ÒýºÅΧסµÄ×Ö·û´® PHP »á¶Ô¸Ã×Ö·û´®× ......

php Á¬½ÓÊý¾Ý¿â £¬ ²åÈë¼Ç¼

         $username = "root";
         $password = "123";
         // ½¨Á¢Á¬½Ó
         mysql_connect('localhost', $username, $p ......

PHP»á»°(Session)ʹÓÃÈëÃÅ


¡¡¡¡¶Ô±ÈÆð Cookie£¬Session ÊÇ´æ´¢ÔÚ·þÎñÆ÷¶ËµÄ»á»°£¬Ïà¶Ô°²È«£¬²¢ÇÒ²»Ïñ Cookie ÄÇÑùÓд洢³¤¶ÈÏÞÖÆ£¬±¾Îļòµ¥½éÉÜ Session µÄʹÓá£
¡¡¡¡ÓÉÓÚ Session ÊÇÒÔÎı¾ÎļþÐÎʽ´æ´¢ÔÚ·þÎñÆ÷¶ËµÄ£¬ËùÒÔ²»Å¿ͻ§¶ËÐÞ¸Ä Session ÄÚÈÝ¡£Êµ¼ÊÉÏÔÚ·þÎñÆ÷¶ËµÄ Session Îļþ£¬PHP ×Ô¶¯ÐÞ¸Ä Session ÎļþµÄȨÏÞ£¬Ö»±£ÁôÁËϵͳ¶ÁºÍдȨ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ