|
Posted by Jonathan N. Little on 07/08/06 12:58
Rik wrote:
>> $v = htmlentities($data['option']);
>> printf("\t<option value=\"%s\">%s</option>\n", $v, $v);
>
> ==
> printf("\t<option value=\"%1$s\">%1$s</option>\n",
> htmlentities($data['option']));
Ok you are using argument swapping to repeat the variable, but doesn't
the placeholder require a '\'?
printf("\t<option value=\"%1\$s\">%1\$s</option>\n",
htmlentities($data['option']));
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|