<?php function myFunction($format, $timestamp){ echo $format."/"; } function _date($format, $timestamp = null){ $result = !isset($timestamp) ? date($format) : date($format, $timestamp); myFunction($format, $timestamp); return $result; } echo _date("Y-m-d");
You have javascript disabled. You will not be able to edit any code.