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? Link to comment https://forums.phpfreaks.com/topic/77096-solved-variables-insides-arrarys-without/ 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 Link to comment https://forums.phpfreaks.com/topic/77096-solved-variables-insides-arrarys-without/#findComment-390448 Share on other sites More sharing options...
Cardale Posted November 13, 2007 Author Share Posted November 13, 2007 thanks. Link to comment https://forums.phpfreaks.com/topic/77096-solved-variables-insides-arrarys-without/#findComment-390451 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.