sprintf Lets you format a string and combine it with variables. #php Reference: https://www.php.net/manual/en/function.sprintf.php $day = date("l"); $year = date("Y"); echo sprintf('Current year: %s. Current day %s', $year, $day); copy