Vous cherchez à parcourir un tableau d'URL et à injecter chaque mot clé d'un deuxième tableau dans chaque URL, mais vous n'arrivez pas à comprendre les tableaux. Par exemple:Mise en boucle d'un tableau à travers un deuxième tableau
$key = array("Keyword+1", "Keyword+2", "Keyword+3"),
$url =array("google.co.uk/#hl=en&q=", "bing.com/search?q=","uk.search.yahoo.com/search?vc=&p="),
Je voudrais ci-dessus à la sortie:
google.co.uk/#hl=en & q = mots-clés + 1
google.co.uk/#hl = en & q = 2 + mot-clé
& google.co.uk/#hl=en q = 3 + mot-clé
bing.com/search?q=Keyword+1 bing.com/search?q=Keyword +2
bing.com/recherche?q=K eyword + 3
& uk.search.yahoo.com/search?vc= p = + 1 mots-clés
& uk.search.yahoo.com/search?vc= p = + 2 mots-clés
uk.search.yahoo .com/search? vc = & p = Keyword + 3
y at-il un moyen efficace pour atteindre cet objectif? :)
Vous pouvez voir un certain avantage de http://stackoverflow.com/questions/2246493/concatenate-values-of-n-arrays-in-php –