PHP strtr()

1 개요[ | ]

PHP strtr()
  • "string translate"
echo strtr("Hilla Warld","ia","eo"); # Hello World
$trans = ["h" => "-", "hello" => "hi", "hi" => "hello"];
echo strtr("hi all, I said hello", $trans); # hello all, I said hi
echo strtr("baab", "ab", "01") . "\n";
echo strtr("baab", ["ab" => "01"]) . "\n";

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}