1
I do a check:
if( $nomedoaluno <> str_replace(" ","-",semacentos($arrayReturn['nomedoaluno'])) ){
exit();
and assemble the url www.foo.com/student-name
I would like to do a check so that: "If 80% is correct" does not terminate the program.
It is possible?
I thought I’d separate every word and check:
$array=explode("-",$nomealuno);
But I don’t know what the code would look like. Someone can help me?
Got that way:
$aluno1 = $nomedoaluno;
$aluno2 = str_replace(" ","-",semacentos($arrayReturn['nomedoaluno']));
if($porcentagem < 80){
exit();
}
To calculate the % of a wrong name you need to know the correct name... And if you have a Flavio and a Flavia, this logic will enter 'blue screen' rs
– Papa Charlie
Related: How to make a phonetic algorithm for Brazilian Portuguese? (related does not imply duplicity, it is only a related subject that can be interesting and harnessed)
– Guilherme Nascimento