<? Php $ Keys = array ( Array ('webpage effect ', 'http: // www.111cn.net/js_a/js.html '), Array ('SEO ', 'http: // www.111cn.net/seo/seo.html '), Array ('php', '/phper/php.html '), Array ('JSP ','/jsp/jsp.html '), Array ('asp ','/asp/asp.html '), Array ('ps', 'http: // www.111cn.net/fw/photo.html '), Array ('Photoshop ', 'http: // www.111cn.net/fw/photo.html '), Array ('javascript ', 'http: // www.111cn.net/js_a/js.html '), Array ('. Net','/net/net.html '), Array ('nonmainstream ', 'http: // www.111cn.net/fw/photo.html '), Array ('Network', 'http: // www.111cn.net/mon/mon.html '), Array ('css ','/cssdiv/css.html '), Array ('Graphic Design ', 'http: // www.111cn.net/fw/photo.html '), Array ('Website', '/person /'), Array ('webpage maker ', 'http: // www.111cn.net/wy/yunchtml '), Array ('search engine ', 'http: // www.111cn.net/seo/seo.html '), Array ('Optimization', 'http: // www.111cn.net/seo/seo.html '), Array ('animate', '/flash_a/flash.html '), Array ('database', '/database/database.html '), Array ('earning money ', 'http: // www.111cn.net/mon/mon.html '), Array ('operation', 'http: // www.111cn.net/mon/mon.html ') ); $ Str = "today is July 22, May 30, 2010. My website encountered problems. There are many seo problems. seo is the optimization of search engines. I used to learn php well. Now I think jsp is good, css + div, webpage, webpage design, webpage creation, webpage learning, webpage teaching, Photoshop, Flash, HTML, CSS, Dreamweaver, Fireworks, ASP, PHP, JSP, ASP. NET, website construction, website development, webpage special effects, graphic design, personal website, webpage materials "; Echo $ str, "<br> "; Foreach ($ keys as $ nkeys ){ // Print_r ($ nkeys); echo "<br> "; // Foreach ($ nkeys as $ join ){ // Echo ($ join), "<br> "; If (strpos ($ str, $ nkeys [0]) { $ Str = str_replace ($ nkeys [0], "<a href = http://www.111cn.net ". $ nkeys [1]. "target = _ blank> ". $ nkeys [0]. "</a>", $ str ); } //} } Echo $ str; ?> |