<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"><<a href="mailto:austin@pressedcode.com">austin@pressedcode.com</a>></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 <<a href="mailto:satish.iitg@gmail.com">satish.iitg@gmail.com</a>> wrote:<br>
> Which is better of the following two<br>
><br>
> <?php<br>
> echo "This is a string with variable $test_variable"<br>
> ?><br>
><br>
> <?php<br>
> echo 'This is another variant of the above statement '.$test_variable<br>
> ?><br>
<br>
</div>Better:<br>
<br>
printf( __( 'This is another variant of the above statement %s',<br>
'theme-slug' ), $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>