What is the function in PHP to convert a date and time in the format TT.MM.JJJJ-HH:MM to a Unix timestamp?

To convert a date and time in the format TT.MM.JJJJ-HH:MM to a Unix timestamp in PHP, you can use the `strtotime()` function. This function parses a date and time string and returns a Unix timestamp. You can pass the date and time string in the format "d.m.Y-H:i" to the `strtotime()` function to get the Unix timestamp.

$date_time = "25.12.2022-14:30";
$unix_timestamp = strtotime(str_replace('.', '-', substr($date_time, 0, 10)) . substr($date_time, 10));
echo $unix_timestamp;