【发布时间】:2011-10-15 02:21:05
【问题描述】:
这一直有效,直到第 13 个字符被击中。一旦 str_ireplace 在 cyper 数组中命中“a”,str_ireplace 就会停止工作。
数组的大小是否有限制?请记住,如果键入“abgf”我会得到“nots”,但如果我在应该得到“notes”时键入“abgrf”,我会得到“notrs”。绞尽脑汁想不通。
$_cypher = array("n","o","p","q","r","s","t","u","v","w","x","y","z","a","b","c","d","e","f","g","h","i","j","k","l","m");
$_needle = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z");
$_decryptedText = str_ireplace($_cypher, $_needle, $_text);
echo $_decryptedText;
帮助?
【问题讨论】:
标签: php compiler-errors str-replace