cheechm Posted November 12, 2007 Share Posted November 12, 2007 Hi, I am using Smarty (->smarty.php.net) and I want to show this: printf($lang['users_online'],'$total_online_users'); How would I assign that with smarty using this: $template->assign('TOTAL_USERS_ONLINE, 'what the above outputs); Thanks Link to comment https://forums.phpfreaks.com/topic/77012-solved-printf-in-smarty/ Share on other sites More sharing options...
aschk Posted November 12, 2007 Share Posted November 12, 2007 Simple : $template->assign('TOTAL_USERS_ONLINE' , sprintf($lang['users_online'],$total_online_users)); Link to comment https://forums.phpfreaks.com/topic/77012-solved-printf-in-smarty/#findComment-389973 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.