Fijate bien lo que haces
Código PHP:
Ver original{
$matricula=$row['matricula'];
$bold_word='<b>'.$search_word.'</b>';
$final_msg = str_ireplace($search_word, $bold_word, $matricula); ?> //<---------------------------------------------------------- aqui esta el error
echo "<table cellspacing='1' class='tablesorter'>
<thead>
<tr>
<th>Nombre</th>
<th>Matricula</th>
<th>Concepto pagado</th>
<th>Cantidad pagada</th>
<th>Folio de pago</th>
</tr>
</thead>";
Estas saliendote de PHP para entrar como html y tienes un echo que es de PHP declarado como html