Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F391437
modifier.yyyymmdd.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
450 B
Subscribers
None
modifier.yyyymmdd.php
View Options
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty lower modifier plugin
*
* Type: modifier<br>
* Name: yyyymmdd<br>
* Purpose: Appends dashes to yyyymmdd string to output yyyy-mm-dd
* @author Wolfaeym
* @param string
* @return string
*/
function
smarty_modifier_yyyymmdd
(
$string
)
{
return
substr
(
$string
,
0
,
4
)
.
'-'
.
substr
(
$string
,
4
,
2
)
.
'-'
.
substr
(
$string
,
6
,
2
);
}
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Feb 22, 20:24 (1 d, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25063
Default Alt Text
modifier.yyyymmdd.php (450 B)
Attached To
rZED Zed
Event Timeline
Log In to Comment