Comment detail

文字変換表に基く文字列の変換 (Nested Flatten)
(1)です。
PHPではstrtrとして実装されています。
1
2
3
4
5
<?php
$str = 'typewriter';
$from = 'qwertyuiop';
$to = 'QWERTYUIOP';
echo strtr($str, $from, $to);

Index

Feed

Other

Link

Pathtraq

loading...