Date string into images

firsty I’m a complete php nOOb

I just finished changing my website from tedious html to dynamic php using includes. I have a javascript function I wrote displaying the date as images

naturally i’d like to replace this with php, but i’m not sure how. i’m taking baby steps and trying to split the date string into individual digits before I display each digit as an image:

<?php

$date = date("d.m.Y"); 

$day = str_split(date("d"));
$month = str_split(date("m"));
$year = str_split(date("Y"));

echo $day[0] . $day[1] . $month[0] . $month[1] . $year[0] . $year[1] . $year[2] . $year[3];

?>

But i keep getting:

Fatal error: Call to undefined function: str_split()

I’ve probably made a few major mistakes, so if anyone could help me out i’d be greatful.

Thanks :slight_smile: