Cardale Posted November 13, 2007 Share Posted November 13, 2007 I was going through PHPBB and seeing how they did things and one thing kinda stumped me. I assume its just some replace or what not, but I was still curious how they did it. Here is a example. $lang['Unread_pms'] = 'You have %d unread messages'; I'm referring to the "%d" How is this done? Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted November 13, 2007 Share Posted November 13, 2007 look at the sprintf function youll understand what they are doing Quote Link to comment Share on other sites More sharing options...
Cardale Posted November 13, 2007 Author Share Posted November 13, 2007 thanks. Quote Link to comment 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.