[PHP] str_replace: use multiple or array?

2004-07-30 Thread PHP Gen
Hi, I need to use a couple of str_replace's in one of my programs and would like to know which is more resource friendly: 1) having multiple str_replace one after another eg: $text = str_replace(orange, apple, $text); $text = str_replace(black, white, $text); $text = str_replace(girl, guy,

Re: [PHP] str_replace: use multiple or array?

2004-07-30 Thread Curt Zirzow
* Thus wrote PHP Gen: Hi, I need to use a couple of str_replace's in one of my programs and would like to know which is more resource friendly: 1) having multiple str_replace one after another eg: $text = str_replace(orange, apple, $text); $text = str_replace(black, white, $text); ...