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">', 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. 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!!!!! Link to comment https://forums.phpfreaks.com/topic/213673-use-of/#findComment-1112151 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.