我想對兩個字符串進行處理,並且必須知道是否有空格來停止我的處理並轉移到字符的其餘部分 我測試了它,但它沒有「T統治問題:如何在php程序中檢測字符串上的空白
for ($i = 0; $i < $lenght; $i++) {
if($text[$i] <> '' && $mask[$i] <> ''){
$nbrcrypted = $stringtonumber[$text[$i]] + $stringtonumber[$mask[$i]];
$resultat .= $numbertostring[$nbrcrypted];
}else{
$indice = false;
}
}
我怎麼能做到這一點,謝謝你提前
定義「空白」。你只是指空間嗎?水平製表符?回車?換行? – rdlowrey