dogbot Posted September 17, 2010 Share Posted September 17, 2010 What does the % sign men in this context 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', Quote Link to comment https://forums.phpfreaks.com/topic/213673-use-of/ Share on other sites More sharing options...
Adam Posted September 17, 2010 Share Posted September 17, 2010 They're special place-holders that are replaced by sprintf / printf. In your example they are replaced by the second and third (string) arguments in the call to (s)printf, but in reverse order. Quote Link to comment https://forums.phpfreaks.com/topic/213673-use-of/#findComment-1112145 Share on other sites More sharing options...
dogbot Posted September 17, 2010 Author Share Posted September 17, 2010 Wow, I just learned something really cool about PHP..thanks for the answer and for providing the helpful links!!!!! Quote Link to comment https://forums.phpfreaks.com/topic/213673-use-of/#findComment-1112151 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.