PHP Regular expression flags
Posted
by incrediman
on Stack Overflow
See other posts from Stack Overflow
or by incrediman
Published on 2010-03-18T08:54:52Z
Indexed on
2010/03/18
9:01 UTC
Read the original article
Hit count: 152
Can someone explain what the 'e' flag does, or link me to somewhere that does? I couldn't find anything via google.
Example:
preg_replace("/a(b?)c/e", "search_foo_term('\$1')", $str);
© Stack Overflow or respective owner