I'm trying to make a word filter in a string, to store in a variable.
Grammatically, they are called prepositions , circumposiciones and postpositions .
Used to link elements of a phrase.
EX:
$string = "o rato roeu a roupa do rei de roma"
//aqui a função armazenando as palavras filtradas, que eu acredito que seja um array
$novoValor = "rato roeu roupa rei roma;
echo $novovalor;