- preg_replace: documentation ( source)
<?php
$title = 'Peugeot 107';
$patterns = array('/107/', '/108/', '/207/', '/208/', '/2008/', '/308/', '/3008/', '/508/', '/5008 SW/' );
echo preg_replace($patterns, '/<span class="h1firstword">$1</span>', $title); ?>