The following example tells me if the text of the variable $ phrase contains a S as a letter.
$frase="respuesta en ingles";
$posicion_coincidencia = strpos($frase, s);
if ($posicion_coincidencia === false)
{
echo "La $frase";
} else {
echo "Las $frase";
}
My question: What I need from the text of the $ phrase variable is:
If it does not contain the letter (S) at the end of the first word, show me (The $ phrase) and if it contains the letter > (S) at the end of the first word show me on screen (Las $ frase) .
That is, show me (LA or LAS) depending on whether there is (s) or (no) in the first word of the indicated phrase.
I hope you understand me. Thank you very much.