0

I try to do the following:

I have a script that uses diffrent codes to retrieve from a xml file. I try to store those in the database.

An example is:

str_replace(array_keys($replace), $replace,preg_replace('!\s+!', '-', $permanameproduct))

When I retrieve this frome the database I get this it as a string, but i would like it to return the value from expression.

Is there a way I can do this in PHP, I was trying to use eval() but i could not get it working so far.

Thanks :)

Machavity
  • 30,841
  • 27
  • 92
  • 100
Janus
  • 21
  • 2

0 Answers0