Bonjour,
J'ai l'erreur suivante lorsque j'utilise implode dans ma fonction php :

Notice: Array to string conversion in C:\wamp\www\photo\lib\model\Photo.php on line 19

Voici ma fonction :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
public function getTagsString () {
	$tags[] = array();
	foreach ($this->getTags() as $tag) {
		$tags[] = $tag->__toString();
	}
	$s = implode(' ',$tags);
	return $s;
}
Comme vous pouvez le voir $tags est un tableau mais, d'après ce que j'ai compris $s est vu comme un tableau ou $tags est vu comme une chaine de caracteres ...

Any idea ?