PHP strtr()

Jmnote (토론 | 기여)님의 2022년 4월 29일 (금) 13:20 판 (→‎개요)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

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 }}