NYCPHP Meetup

NYPHP.org

[nycphp-talk] EREG Question

Chris Shiflett shiflett at php.net
Wed Feb 5 10:34:07 EST 2003


--- "Pete Czech - New Possibilities Group, LLC" 
>    foreach($number as $n) {

Add an echo statement right here that displays the current
value of $n. I think you will find that your problem comes
sooner than you think.

>     if ($n == $a) {
>      $content = ereg_replace("$a", "<b>$a</b>",
> $content);  //<------ PROBLEM AREA!!!
>      $correct_amount++;
>     }  
>    }

Chris



More information about the talk mailing list