- 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>';
printf (preg_replace('/<b>/', '', $str));