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

phpÏÂͨ¹ýxml_parse½âÎöxmlÎļþ

xml_parse½âÎöxmlÎļþʱºò£¬
ºÜÓпÉÄܲ»½ö½öµ÷ÓÃÒ»´Îcharacter_handler¡£
ËùÒÔÔÚ»ñµÃxml½ÚµãµÄÎı¾ÐÅÏ¢µÄʱºò£¬ÒªÓÃÁ¬½ÓÔËËã".="¡£
²Î¿¼ http://jp2.php.net/manual/ro/function.xml-set-character-data-handler.php
ken at positive-edge dot com
30-Jan-2002
01:20
the function handler is called several times when it parses the
character data.  It doesn't return the entire string as it suggests. 
There are special exceptions that will always force the parser to stop
scanning and call the character data handler.  This is when:
- The parser runs into an Entity Declaration, such as & (&)
or ' (�)
- The parser finishes parsing an entity
- The parser runs into the new-line character (\n)
- The parser runs into a series of tab characters (\t)
And perhaps others.
For instance, if we have this xml content:
<mytag name=�Ken Egervari� title=�Chief Technology Officer�>
    Ken has been Positive Edge&apos;s Chief Technology Officer for 2
years.
</mytag>
The parser will call the character data handler 6 times.  This is what
will happen:
1    \n
2    \t
3    Ken has been Positive Edge
4    �
5    s Chief Technology Officer for 2 years.
6    \n
I hope that helps people out.


Ïà¹ØÎĵµ£º

£Ûת£ÝPHP»ñÈ¡IPµØÖ·

£Ûת×Ô£Ýhttp://hi.baidu.com/xiamishule/blog/item/dea92c09ef9acc9e0b7b8236.html
Ô´´úÂ룺
PHP»ñÈ¡IPµÄ·½·¨ÓÐÐí¶àÖÖ£¬<br />½ñÌìÏò´ó¼Ò×ܽáÁËÁùÖÖ·½·¨¡£
<br />PHP»ñÈ¡IP·½·¨Ò»£º
<?php    
function GetIP() {
    if(!empty($_SERVER["HTTP_CLIENT_ ......

PHPʵÏÖÊ×Ò³×Ô¶¯Ñ¡ÔñÓïÑÔ×ªÌø

http://www.111cn.net/phper/19/dd73e6624c92e49e7755d3b43719677d.htm
ºÜ¶àÍøÕ¾ÔÚÊ×Ò³ÉÏ×öһЩÁ´½Ó£¬ÈÃÓû§À´Ñ¡Ôñ½«Òª·ÃÎʵĸ÷×ÔµÄÓïÑÔÒ³Ãæ£¬ÈÃÖйúÈËÑ¡Ôñ“ÖÐÎÄ”£¬º«¹úÈËÑ¡Ôñ“³¯ÏÊÓ¬µÈµÈ¡£ÄÇôÄܲ»ÄÜ×ö³ÌÐòÀ´×Ô¶¯°ïÖúÑ¡ÔñÄØ£¿
´ð°¸Êǿ϶¨µÄ£¬´ó¼Ò¶¼ÔÚÓÃgoogle£¬ÄãÓÃÖÐÎÄϵͳ´ò¿ªgoogleµÄÊ×Ò³ ......

ÈÃPHP¿ª·¢Õßʰ빦±¶µÄÊ®´ó¼¼ÇÉ

Èç¹ûÄãʹÓÃÒ»Ãæ´ó¾µ×Ó×÷Ϊ³åÀ˰å»á·¢Éúʲô£¿»òÐíÄã»áÔڽ϶̵Äʱ¼äÄÚÕ÷·þº£ÀË£¬µ«ÊÇÄã¿Ï¶¨´ÓÄÚÐÄÉî´¦Ã÷°×£¬Õâ²»ÊdzåÀ˵ÄÕýÈ·Ñ¡Ôñ¡£Í¬ÑùµÄµÀÀíÒ²ÊÊÓÃÓÚPHP±à³Ì£¬¾¡¹ÜÕâÑùµÄÀà±ÈÌýÆðÀ´ÓÐһЩ¹Å¹Ö¡£ÎÒÃǾ­³£Ìýµ½ÓÐÈËÊÔͼÓÃÒ»¸öÖÜÄ©¶àµãµÄʱ¼äÀ´Ñ§»áPHP£¬µ«ÊÇÇëË¡ÎÒÖ±ÑÔ£¬ÕâÊÇѧϰÕâÃűà³ÌÓïÑÔµÄÒ»Öַdz£Ôã¸âµÄ·½Ê½¡£
ΪºÎ资 ......

php ³ÌÐòµÄ¹ú¼Ê»¯gettext

²½ÖèÒ»£º´î½¨»·¾³
1£¬Ê×ÏȲ鿴ÄãµÄphpÀ©Õ¹Ä¿Â¼ÏÂÊÇ·ñÓÐphp_gettext.dllÕâ¸ö
Îļþ£¬Èç¹ûûÓУ¬Õâ¾ÍÐèÒªÄã
ÏÂÔØÒ»¸ö»òÊÇ´ÓÆäËûµØ·½¿½±´Ò»¸ö£¬È»ºó·Åµ½phpÀ©Õ¹Ä¿Â¼¡£
2£¬´ò¿ªphp.ini£¬²é
ÕÒ”;extension=php_gettext.dll“ £¬È»ºóÈ¥³ý×¢ÊÍ£¬ÖØÆôapache¡£
²½Öè¶þ:Ô­Àí½²½â
¼ÙÈçÄãµÄû
Óйú¼Ê»¯µÄ³ÌÐòÀïÓÐÕâÑù ......

£Ûת£ÝPHPÖÐstr_replaceº¯ÊýµÄÏê½â


ÔÚʵ¼ÊµÄ³ÌÐò¿ª·¢ÖУ¬Ö´ÐÐ×Ö·û´®Ìæ»»²Ù×÷ÊÇÒ»¼þ·Ç³£¾­³£µÄÊ£¬¶Ô
str_replace
º¯ÊýµÄʵÓÃÒ²»á·Ç³£Æµ·±¡£
     
Õâ¶Îʱ¼äÔÚ¿´¡¶
PHP
ºÍ
MySQL Web
¿ª·¢¡·Ò»Êé¿´µ½
str_replace
½²½â£¬Ò»¶ÎСÌáʾдµ½£º¿ÉÒÔΪ
str_replace
µÄÈý¸ö¶¼Ê¹ÓÃÊý×é´«È룬µ«½²½â±È½Ï¼òµ¥£¬ÓÚÊǾö¶¨×Ô¼ºµÄÊÔÑé ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ