I have an array witch match string placeholders as follow:
"some text %s another text %s extra text %s"
and the array:
$array[0] match the first %s
$array[1] match the second %s
$array[2] match the third %s
I thought it could be done using the sprintf function as follow:
$content = sprintf("some text %s another text %s extra text %s", $array);
but this return the too few arguments error, i tried to use implode:
$content = sprintf("some text %s another text %s extra text %s", implode(",",$array));
thanks in advance