PHP 8.5.0 Alpha 4 available for testing

Voting

: max(three, two)?
(Example: nine)

The Note You're Voting On

elloromtz at gmail dot com
15 years ago
If you supply 3 arguments and the 2nd is an array, strtr will search the "A" from "Array" (because you're treating it as a scalar string) and replace it with the 3rd argument:

strtr('Analogy', array('x'=>'y'), '_'); //'_nalogy'

so in reality the above code has the same affect as:

strtr('Analogy', 'A' , '_');

<< Back to user notes page

To Top