I want to do treatments on two strings, and I must to know if there are spaces to stop my treatment and move on to the rest of characters I tested that but it doesn't rule the problem :
for ($i = 0; $i < $lenght; $i++) {
if($text[$i] <> '' && $mask[$i] <> ''){
$nbrcrypted = $stringtonumber[$text[$i]] + $stringtonumber[$mask[$i]];
$resultat .= $numbertostring[$nbrcrypted];
}else{
$indice = false;
}
}
how can I achieve that, thank you in advance