Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F35073480
modifiercompiler.string_format.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
582 B
Referenced Files
None
Subscribers
None
modifiercompiler.string_format.php
View Options
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty string_format modifier plugin
*
* Type: modifier<br>
* Name: string_format<br>
* Purpose: format strings via sprintf
*
* @link http://www.smarty.net/manual/en/language.modifier.string.format.php string_format (Smarty online manual)
* @author Uwe Tews
* @param array $params parameters
* @return string with compiled code
*/
function
smarty_modifiercompiler_string_format
(
$params
,
$compiler
)
{
return
'sprintf('
.
$params
[
1
]
.
','
.
$params
[
0
]
.
')'
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jul 8, 15:14 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3872472
Default Alt Text
modifiercompiler.string_format.php (582 B)
Attached To
Mode
rOBSIDIAN Obsidian Workspaces
Attached
Detach File
Event Timeline
Log In to Comment