Php converts html into a wml WAP markup language instance, wmlwap. Php converts html to wml WAP markup language. wmlwap this article describes how php converts html to wml WAP markup language. Share it with you for your reference. The specific implementation method is as follows: php converts html into a wml WAP markup language instance, wmlwap
This example describes how php converts html into a wml WAP markup language. Share it with you for your reference. The specific implementation method is as follows:
<? Php // Tags // Html tag WAP language // -------------------------------------------- function html2wml ($ content) {// retain the image preg_match_all ("/] *)>/isU", $ content, $ imgarr); if (isset ($ imgarr [0]) & count ($ imgarr [0])> 0) {foreach ($ imgarr [0] as $ k => $ v) $ content = str_replace ($ v, "WAP-IMG ::{$ k}", $ content );} // filter out the style sheet and script $ content = preg_replace ("/