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,
* 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);
...
2 matches
Mail list logo