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 Perintah dasar linux yang wajib diketahui pemula (Linux Command) Belajar linux ariefendi - Maret 22, 2020 0 Cpanel gratis unlimited Tutorial & Pengetahuan ariefendi - Maret 25, 2020 0 Php auto create mail on cpanel whm, Php membuat email otomatis di cpanel whm CodePaste ariefendi - April 29, 2023 0 Cara membuat website desa gratis menggunakan Opensid Membuat Website ariefendi - Maret 31, 2020 0 Source code marketplace mirip bukalapak gratis Cms Gratis ariefendi - September 13, 2020 0 POPULAR CATEGORIESTutorial & Pengetahuan22Pemrograman19Membuat Website14CodePaste9Php Native9Android7