<?php
$str = date_sunset($_SERVER['REQUEST_TIME'], SUNFUNCS_RET_STRING, 36.23, 139.04, 90.6, 9);
$str = preg_replace_callback('/\d|(:)/', function($m) {
return vsprintf(
'<img src="%s.gif" alt="%s" />',
isset($m[1]) ? array('colon', ':') : array($m[0], $m[0])
);
), $str);
echo $str;
- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19
- Parse error: syntax error, unexpected ')' in /in/9vZHZ on line 9
Process exited with code 255.
preferences:
177.92 ms | 1395 KiB | 55 Q