Beranda Pemrograman CodePaste Php removes the div and displays the contents PemrogramanCodePasteFunctionTutorial & Pengetahuan Php removes the div and displays the contents Penulis ariefendi - Maret 21, 2023 PHP sample <?php function remove_htmltag($content, $tag){ if(is_array($tag)){ foreach($id as $i){ $content = preg_replace('#<'.$tag.'>([\s\S]*?)</'.$tag.'>#', '$1', $content); } return $content; } else{ return preg_replace('#<'.$tag.'>([\s\S]*?)</'.$tag.'>#', '$1', $content); } } /*Sample*/ $content = '<div>Hello world</div>'; $html = remove_htmltag($content, 'div'); echo $html; Php removes the div and displays the contents Php menghapus div dan menampilkan isi Php preg_replace BERITA TERKAITDARI PENULIS Android Example retrofit upload file CodePaste Php auto create mail on cpanel whm, Php membuat email otomatis di cpanel whm CodePaste Auto create subdomain php cpanel, Membuat subdomain otomatis di cpanel whm POPULAR ARTICLES Android create tab fragment / viewpager CodePaste ariefendi - Maret 21, 2023 0 Membuat system login website menggunakan php dan html Html & Css ariefendi - Februari 11, 2020 0 Tutorial run android studio ke hp tanpa kabel usb Android ariefendi - April 6, 2020 0 Source code marketplace mirip bukalapak gratis Cms Gratis ariefendi - September 13, 2020 0 Cpanel gratis unlimited Tutorial & Pengetahuan ariefendi - Maret 25, 2020 0 POPULAR CATEGORIESTutorial & Pengetahuan22Pemrograman19Membuat Website14CodePaste9Php Native9Android7