![]() |
|
#1
|
||||
|
||||
Issue with preg_replace, e modifier inside PHP classesRecently, I had an issue with using preg_replace() with the e modifier inside a class. For example, if you were to save the sample code below to a file named test.php and view it, it doesn't work the way it used to (I am on PHP ver 4.3.1).
FILENAME: TEST.PHP PHP Code:
Nothing in the string will be in bold! The funny thing is that I can get it to work if function BoldMe(str) is a regular function outside the class!__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
||||
|
#2
|
||||
|
||||
|
this works fine for me on PHP 4.3.3-dev
and it's without the 'e' and it works fine. btw, you or your host should update there php version. PHP 4.3.2 is already 2 days old... Code:
|
|
#3
|
||||
|
||||
|
You know what, you're absolutely right. It works without the 'e' modifier! Thank you
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Php bbcode issue | Caged | MySQL / PHP Forum | 3 | 06-Aug-2003 19:55 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The