- array_values: documentation ( source)
- array_keys: documentation ( source)
- preg_replace: documentation ( source)
- printf: documentation ( source)
<?php
$str = '<span class="text">Lastly, <b>set up an Administrator Account</b> by entering the requested fields. If you wish to use Active Directory, enter the information of an Active Directory user.</span>';
$replace_o_matic = array(
'/<b>/' => '',
'/<\/b>/' => '',
);
printf (preg_replace(
array_keys($replace_o_matic),
array_values($replace_o_matic),
$str,
1)
);