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);
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [0] => +88 01756567676 [1] => frank.wade@email.com [2] => NAC739 )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
34.63 ms | 405 KiB | 5 Q