Ok. This is not a numeral problem? strval did not make a difference. I have, however, solved the immediate problem with:
# if((strtolower(substr($enquiry, 0, 1)) == $rbenquiry)) if((strtolower(substr($enquiry, 0, strlen($rbenquiry))) == $rbenquiry)) However, preg_replace ('/('.$searchenquiry.')/i' , "<b>$1</b>", $mydata->RB) still gives me: error: Unknown modifier ... $searchenquiry = "1.0.1 Retrospective bibliographies and checklists / bibliographies et répertoires rétrospectifs"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php