> tr('a-z', 'A-Z', $str)
>
> replaces a-z with A-Z, and
>
> tr($foo, $bar, $str)
>
> replaces the characters from $foo with the characters from $bar.
> No special syntax is necessary.
This is actually right up the alley of v2 of RFC 164, which I am editing
currently. Exactly, in fact.
Please, continue the discussion, but much of this will be covered in RFC
164, which should hopefully be out by this afternoon. I will keep
monitoring this discussion for possible useful additions.
-Nate
- Re: RFC 165: Allow variables in a tr/// Stephen P. Potter
- Re: RFC 165: Allow variables in a tr/// Mark-Jason Dominus
- Re: RFC 165: Allow variables in a tr/// Nathan Wiger
- Re: RFC 165: Allow variables in a tr/// Tom Christiansen
- Re: RFC 165: Allow variables in a tr//... Nathan Wiger
- Re: RFC 165: Allow variables in a tr/// Tom Christiansen
- Re: RFC 165: Allow variables in a tr/// Mark-Jason Dominus
- Re: RFC 165: Allow variables in a tr//... Tom Christiansen
- Re: RFC 165: Allow variables in a... Mark-Jason Dominus
- Re: RFC 165: Allow variables in a tr/// Stephen P. Potter
- Re: RFC 165: Allow variables in a tr/// Tom Christiansen
- Re: RFC 165: Allow variables in a tr/// Stephen P. Potter
- Re: RFC 165: Allow variables in a tr/// Piers Cawley
