php º¯Êý
htmlspecialchars()
º¯Êý°ÑһЩԤ¶¨ÒåµÄ×Ö·ûת»»Îª HTML ʵÌå¡£
ENT_COMPAT - ĬÈÏ¡£½ö±àÂëË«ÒýºÅ¡£
eg:" £¨Ë«ÒýºÅ£© ³ÉΪ "
implode()
º¯Êý°Ñ
Êý×éÔªËØ×éºÏΪһ¸ö×Ö·û´®¡£
Óï·¨:implode(separator,array)
separator
¿ÉÑ¡¡£¹æ¶¨Êý×éÔªËØÖ®¼ä·ÅÖõÄÄÚÈÝ¡£Ä¬ÈÏÊÇ ""£¨¿Õ×Ö·û´®£©¡£
array
±ØÐè¡£Òª½áºÏΪ×Ö·û´®µÄÊý×é¡£
eg:
<?php>
$arr = array('Hello','World!','Beautiful','Day!');
echo implode(" ",$arr)
;
?>
Êä³ö£º Hello World! Beautiful Day!
explode()
º¯Êý°Ñ×Ö·û´®·Ö¸îΪÊý×é¡£
¸ñʽ£ºexplode(separa
Ïà¹ØÎĵµ£º
PHP´´½¨Îļþ£¨¼Ð£©ÒÔ¼°Ä¿Â¼²Ù×÷
Ò»¡¢Ä¿Â¼²Ù×÷
Ê×ÏÈÊÇ´ÓĿ¼¶ÁÈ¡µÄº¯Êý,opendir(),readdir(),closedir(),ʹÓõÄʱºòÊÇÏÈ´ò¿ªÎļþ¾ä±ú,¶øºóµü´úÁгö:
<?php
$base_dir="filelist/";
$fso=opendir($base_dir);
echo $base_dir."<hr/>";
whil ......
Code:
<?php
function genRandomString($len)
{
$chars = array(
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k",
"l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v",
"w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G",
"H", "I", "J", "K", "L", "M", "N", "O", ......
ÏÖÔÚÊг¡ÉϵÄoa»ù±¾ÉϿɹé½áΪÁ½´óÕóÓª£¬¼´phpÕóÓªºÍjavaÕóÓª¡£µ«¶Ô½Ó´¥oa²»¾ÃµÄÓû§À´Ëµ£¬¿´µ½µÄÍùÍùÖ»ÊÇËüÃǵıíÏֻ࣬ÊÇÃ÷ÏԵļ۸ñ²îÒ죬ȴºÜÄÑ¿´³öËüÃÇÖ®¼äµÄʵ¼Ê²îÒì¡£Æäʵ£¬ PHP + MYSQL ²»ÖµÇ®²»½ö½ö¾ÖÏÞÓÚoaÈí¼þ£¬¶øÊÇÕûÌåÉÏPHP + MYSQL¿ª·¢µÄÈí¼þ¶¼²»Èçjava¿ª·¢µÄÈí¼þֵǮ¡£ÎªÊ²Ã´PHP + MYSQL µÄOAΪʲô²»ÖµÇ®Ä ......
ÏÖÔÚÓкܶàµÄrss¶©ÔÄ£¬ÎÒÃÇÖ±½Ó¿ÉÒÔ¶©Ôĵ½ÓÊÏä¡£¼ÈȻѧÁËPHP£¬ÄÇôÓÐûÓÐÒ»ÖÖ·½·¨¿ÉÒÔÖ±½Ó½«rssµÄÐÂÎÅÐÅÏ¢ÏÔʾÔÚ×Ô¼ºµÄÍøÒ³ÉÏÄØ£¿Óе쬱ØÐëµÄ£¬ÏÂÃæ¾ÍÊÇÕâ¸örss½Å±¾£º
<?php
//RSSÔ´µØÖ·ÁбíÊý×é
$rssfeed = array("http://blog.csdn.net/heavenopener/category/668064.aspx/rss");
for($i=0;$i<sizeof($rssfee ......
ÔÚÏîÄ¿¿ª·¢Öз¢ÏÖ¶ÔphpµÄÎĵµÈ±ÉÙ¹ÜÀí,±ðÈËдÁËÒ»¸ö,¹¦Äܲ»¶à
<?php
/**
* ˈ̞: doc
*
ÃèÊö: ÎĵµÉú³ÉÀà
* ÆäËû: ¿ÉÒÔ¶ÔĿ¼½øÐйýÂË,ÉèÖúÃԴĿ¼ºó,ÇëÓþø¶Ô·¾¶Ö¸¶¨Éú³ÉĿ¼,ģʽ¿Éµ÷,ģʽ
*
1Ϊ³£¹æÀàÐÍ,¼´ÒÔ Ð±Ïß**¿ªÍ·,ÒÔ*бÏß ½áÊø
* 2ΪÀ©Õ¹ÀàÐÍ,·²ÊÇ Ð±Ïß*¿ªÍ·ÒÔ*бÏß ½áÊøµÄ²¿·Ö¶¼½«³ÉΪÎÄ ......