Just a short question. Is there a speed difference between eval() and preg_replace when used in a loop?
It would be used to either eval a string like:
"My name is $name"
Or in a preg_replace string like:
"My name is <DATA:name>" Where <DATA:name> is replaced with $name.
Sorry it's so short, but trying to explain the whole thing would be difficult and most likely confusing since I'm not very good at explaining things 🙂
Any input would be great,
Thanks in advance