Re: sort() - Where did I go wrong?
| From: | Aidan Lister | Date: | Sun, 11 Jul 2004 07:58:43 +0000 |
| Subject: | Re: sort() - Where did I go wrong? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190173@lists.php.net to get a copy of this message | ||
I don't see how these questions are related, please ask each question
separately next time.
If you want to put variables in your regex's, you must use preg_quote.
"John Taylor-Johnston" <taylorjo@collegesherbrooke.qc.ca> wrote in message
news:40F0E6C5.1F2D625B@collegesherbrooke.qc.ca...
> 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";