I tried ereg_replace("\{" . $var . "\}",$value,$string) and it didnt return 
                 an error... but it didnt replace anything.  Other ideas ?  Either {'s 
are 
                 impossible to escape or php just doesnt like me...

--- CC Zona <[EMAIL PROTECTED]>
> wrote:
>In article <[EMAIL PROTECTED]>, 
>[EMAIL PROTECTED] (Zack Ham) wrote:
>
>> What I'm trying to do is run through it and replace {title} with an 
>> appropriate value.  I have tried running 
>> ereg_replace("{$var}",$value,$string) and 
>> ereg_replace("\{$var\}",$value,$string).  Neither work.  They either do 
>> nothing or produce the error "Warning: invalid content of \{\}".
>
>Is $var=="title" (same case, no leading/trailing whitespace, etc.)?
>
>If so, then perhaps try:
>  ereg_replace("\{" . $title . "\}",$value,$string)
>
>If not, then perhaps one of these:
>  eregi_replace("\{" . $title . "\}",$value,$string) 
>  eregi_replace("\{title\}",$value,$string)
>
>-- 
>CC
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

_____________________________________________________________
Free email provided by ---> http://sect0r.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to