sprintf
Lets you format a string and combine it with variables.
$day = date("l");
$year = date("Y");
echo sprintf('Current year: %s. Current day %s', $year, $day);
copy
Lets you format a string and combine it with variables.
$day = date("l");
$year = date("Y");
echo sprintf('Current year: %s. Current day %s', $year, $day);
copy