strtr with array of transforms - how many passes thru string?
| From: | Steve Magruder, D2 Director | Date: | Fri, 05 Jul 2002 23:57:57 +0000 |
| Subject: | strtr with array of transforms - how many passes thru string? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105755@lists.php.net to get a copy of this message | ||
When I pass a string to strtr($TheText, $Transform_Array), where
Transform_Array contains array elements like "a" => "b", I've been
wondering, how many passes through the string are performed to accomplish
all the string replacing? Is it one per transform, or just one total (I
hope)? If it's not just one pass, is there another way I can accomplish
this same thing just going through the string in one pass?
Thanks,
Steve
--
Steve (www.stevemagruder.com)