bonjour suite a la réalisation d'un petit script fait par moi meme, j'ai un petit probleme.
voici déjà mon code :
c'est pour un moteur de recherche, le probleme est que quand je recherche des ville qui contient plusieur mots, cela me le concidere comme 2 ou plus.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 $informations = trim(@$_GET['informations']); $informations = str_replace(", ", " ", $informations); $informations = str_replace(",", " ", $informations); $informations = str_replace("; ", " ", $informations); $informations = str_replace(";", " ", $informations); $informations = str_replace("+", " ", $informations); $informations = str_replace("\"", " ", $informations); $informations = str_replace(":", " ", $informations); $tab=explode(" " , $informations);
exemple :
"paris", ok ça marche.
"saint etienne", me donne 2 ville, "saint" et "etienne".
Avez vous une petit idée ou solution ?








Répondre avec citation
Partager