<div>Why printf vs sprintf ?</div><br clear="all">Josh<br>
<br><br><div class="gmail_quote">On Thu, Mar 3, 2011 at 8:20 AM, Austin Matzko <span dir="ltr">&lt;<a href="mailto:austin@pressedcode.com">austin@pressedcode.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Mar 3, 2011 at 8:13 AM, Satish Gandham &lt;<a href="mailto:satish.iitg@gmail.com">satish.iitg@gmail.com</a>&gt; wrote:<br>
&gt; Which is better of the following two<br>
&gt;<br>
&gt; &lt;?php<br>
&gt; echo &quot;This is a string with variable $test_variable&quot;<br>
&gt; ?&gt;<br>
&gt;<br>
&gt; &lt;?php<br>
&gt; echo &#39;This is another variant of the above statement &#39;.$test_variable<br>
&gt; ?&gt;<br>
<br>
</div>Better:<br>
<br>
printf( __( &#39;This is another variant of the above statement %s&#39;,<br>
&#39;theme-slug&#39; ), $test_variable );<br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</blockquote></div><br>