Re: - ereg_replace -SOLVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "ΝΙΚΟΣ ΓΑΤΣΗΣ" <nikos@xxxxxxx>

> eregi_replace("<a href=\"(.+)\">", "<a href=\"\\1\" target=\"_blank\"
> class=\"down_txt\">", $body);

How is that any different than just doing a str_replace() on "<a", though?
The str_replace() is going to be much faster than the eregi_replace()
function and "href" doesn't _have_ to be the first attribute in the anchor
tag...

Just trying to open your mind to other possibilities... :)

---John Holmes...

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux