[ create a new paste ] login | about

Link: http://codepad.org/6hGqJPD6    [ raw code | output | fork ]

PHP, pasted on Jan 20:
1
2
3
4
5
6
7
8
<?php
$input = '123456';
echo $output = strtr($input, '0123456789', 'abcdefghij');

echo "\n";

$input = 'bcdefg';
echo $output = strtr($input, 'abcdefghij', '0123456789');


Output:
1
2
bcdefg
123456


Create a new paste based on this one


Comments: