NYCPHP Meetup

NYPHP.org

[nycphp-talk] Eval a string

Michele Waldman mmwaldman at nyc.rr.com
Sat Mar 28 21:37:54 EDT 2009


I think a do use eval, I just used the wrong statement.

 

Michele

  _____  

From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Michele Waldman
Sent: Saturday, March 28, 2009 9:36 PM
To: 'NYPHP Talk'
Subject: [nycphp-talk] Eval a string

 

I have a database string that looks like "$variable word".

 

When I assign it to a string the $variable is not being replaced by the
actual value of $variable.

 

Does anyone know how to force a replacement of a variable name with it's
value in a string?

 

Thanks,

 

Michele

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20090328/cd474013/attachment.html>


More information about the talk mailing list