CodeIgniter Forums
CodeIgniter helpful hints - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CodeIgniter helpful hints (/showthread.php?tid=5909)

Pages: 1 2 3 4 5


CodeIgniter helpful hints - El Forum - 07-09-2008

[eluser]Yash[/eluser]
excellent work xwero!!

really nice thread!!


CodeIgniter helpful hints - El Forum - 07-30-2008

[eluser]xwero[/eluser]
I remember once there was a discussion whether the language library should have placeholders in the language strings but now with the language helper and the sprintf function you can have placeholders without changing the language library.
Code:
$lang['time_is'] = "The time is : %s"; // language file
echo sprintf(lang('time_is'),$time); // view file