3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<str <td width="551"> <p><strong>Full Time Faculty<br> <strong></strong>Assistant Professor</strong></p>Doctorate of Business Administration<br><br> <strong>Phone</strong>: +88 01756567676<br> <strong>Email</strong>: frank.wade@email.com<br> <strong>Office</strong>: NAC739<br> <br><p><b>Curriculum Vitae</b></p></td> str; // We explode $str and use '</strong>' as delimiter and get only the part of result that we need $lines = array_slice(explode('</strong>', $str), 3, 3); // Define a function to remove extra text from left and right of our so called lines function stripLine($line) { // ltrim ' ;' characters and remove everything after (and including) '<br>' return preg_replace('/<br>.*/is', '', ltrim($line, ' :')); } $lines = array_map('stripLine', $lines); print_r($lines);

preferences:
24.24 ms | 409 KiB | 5 Q