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

php×Ö·ûת»»µÄÎÊÌâ - PHP / »ù´¡±à³Ì

str_replace¿ÉÒÔÌæ»»Ò»¸ö¹Ø¼ü×Ö£¬Èç¹ûÏë·Ö±ðÌæ»»¶à¸ö¹Ø¼ü×Ö£¨ÀýÈçÔÚÒ»¸ö×Ö·û´®ÖУ¬°ÑaÌæ»»b£¬°ÑcÌæ»»d£©£¬³ýÁËÑ­»·str_replaceÖ®Í⣬»¹ÓÐûÓиüÓÐЧµÄ·½·¨ÄØ£¬×îºÃÊÇÒ»¸öº¯Êý»òÕßÊÇÒ»¸öÕýÔòÌæ»»µÄ£¿

ûÓÐʲô ¸üÓÐЧÁË ÖØ¸´Ê¹ÓÃËüstr_replace() ÀýÈ磺
 function safe_replace($string)
{  
  $string = str_replace('*','',$string);
  $string = str_replace('"','"',$string);
  $string = str_replace("'",'',$string);
  ...............
  return $string;  
}
Äãµ÷ÓÃÕâ¸öº¯Êý ¾ÍOKÁË

Ŀǰ´ó²¿·ÖµÄÍøÕ¾ Ò²¾ÍÊÇÕâÑùдµÄ

ÒýÓÃ

Ŀǰ´ó²¿·ÖµÄÍøÕ¾ Ò²¾ÍÊÇÕâÑùдµÄ

¶î...Èç¹ûÓÐN¸ö¹Ø¼ü×ÖÒªÌæ»»µÄ£¬ÄDz»ÊÇÒªµ÷ÓÃN´Ëstr_replace£¬ÎÒ¾õµÃÕâ¸öºÜûЧÂʲÅÉÏÀ´ÎÊÏÂÓÐʲôºÃµÄ·½·¨µÄ£¬³ýÁËһ¥µÄ¾Íû±ðµÄ·½·¨ÁË£¿

ÎÒ¾õµÃһ¥µÄ±È½ÏÓÐЧÂÊÒ»µã



str_replaceµÄ²ÎÊýÊÇ¿ÉÒÔÊÇÊý×éµÄ¡£±ÈÈ磺
str_replace(array("a","b"),'x',$s); //°ÑaºÍb¶¼Ìæ»»³Éx
str_replace(array('a','b'),array('x','y'),$s); //°ÑaÌæ»»³Éx£¬°ÑbÌæ»»³Éy


Äã¸úÎÒ·¢Ò»Ñù¸Éʲô£¿
ÒýÓÃ
str_replaceµÄ²ÎÊýÊÇ¿ÉÒÔÊÇÊý×éµÄ¡£±ÈÈ磺
str_replace(array("a","b"),'x',$s); //°ÑaºÍb¶¼Ìæ»»³Éx
str_replace(array('a','b'),array('x','y'),$s); //°ÑaÌæ»»³Éx£¬°ÑbÌæ»»³Éy



Ïà¹ØÎÊ´ð£º

ÈçºÎÔÚphpÍøÕ¾ÖÐÌí¼Ó±³¾°ÒôÀÖ - PHP / »ù´¡±à³Ì

ÎÒÔÚÍøÕ¾µÄÒýµ¼Ò³ÖÐÌí¼ÓÁË<embed src="ÒôÀÖµØÖ·" autostart="true" loop="true" hidden="true"></embed>
Õâ¾ä»°£¬È»ºóÌø×ªÒ³Ãæºó£¬±³¾°ÒôÀÖ¾ÍûÓÐÁË£¬ÔõôÈÃÕ ......

php ¹ØÓÚsession_startµÄÎÊÌâ - PHP / »ù´¡±à³Ì

Çë½Ì¸ßÊÖ°ïæ£¬session_start£¨£©·ÅÔÚÍⲿµÄÎļþÓà require »ò include °üº¬½øÀ´£¬ÇëÎÊÕâÑù×öºÏÀíÂ𣿣¿´úÂëÔËÐÐÊÇÕý³£µÄ£¬ÕâÑù×öºÏÀíÂ𣿣¿Çë¸ßÊÖÖ¸µã¡£¡£¡£¡£ лл····
require »ò include ......

PHP±íµ¥´«ÖµÎÊÌâ - PHP / »ù´¡±à³Ì

PHPÔõôÑù½«µÚÒ»¸ö±íµ¥µÄÖµ´«µ½µÚ¶þ¸ö±íµ¥
ûÓöµ½¹ý£¬°ï¶¥ÏÂ

ͨ¹ýcookie»òͨ¹ýphpÒ³Ãæ¸³Öµ

µÚÒ»¸ö±íµ¥Ìá½»µ½php£¬php»ñÈ¡ÔÙ´«µ½µÚ¶þ¸ö±íµ¥ÖÐ

ÓÃjs°É

»ñȡֵÔÚ·â×°±íµ¥¡£²»ÖªµÀÄãµÄÐèÇóÊÇÔõÑùµÄ

ÓÃjQ ......

PHP+ACCESSʵÏÖ¶þ¼¶Áª¶¯²Ëµ¥ - PHP / »ù´¡±à³Ì

ÍøÉϺöà¶þ¼¶Áª¶¯µÄ£¬Ö»ÊǶ¼Ã»ÓвÉÓÃAccessÊý¾Ý¿âµÄ£¬php²»ÊìϤ£¬ÓÐÁ½¸öÊý¾Ý±í·Ö±ðΪlb(Àà±ð£º±àºÅ£¬Àà±ðÃû³Æ£©into_product(²úÆ·¹ÜÀí£ºid,Ãû³Æ£¬Àà±ðµÈ×ֶΣ©
ÏëҪʵÏÖ£ºµÚÒ»¸öÏÂÀ­²Ëµ¥Ñ¡ÔñÍêÀà±ðºó£¬µÚ¶þ²Ëµ¥¾Í°Ñ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ