我想要做一些加密和写数字
我用:PHP数组元素取代
$a = [100,101,102,103,104,105]
function decrition (array $a){
return preg_replace('/101/','a',$a);
}
而且它的返回我的所有字母排列“一”为每个101。 接下来我该如何改变? 101为 “B”,102 “C” 等
return preg_replace('[101|102|103|104|105]','a',$a);
这种方法代替这一切的号码字母 “a”
return preg_replace('[101|102|103|104|105','a|b|c|d|e',$a);
遗憾的是它不工作
'我想做出一些encryption'请不要试图[推倒重来(http://security.stackexchange.com/questions/18197/为什么 - 不应该,我们侧倾我们-自己)。 – Martin