# Date string into images

**URL:** <https://forum.kirupa.com/t/date-string-into-images/279593>\
**Category:** Uncategorized\
**Created:** [January 16, 2009, 11:57am UTC](https://forum.kirupa.com/t/date-string-into-images/279593 "2009-01-16T11:57:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![revelations1318](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@revelations1318](https://forum.kirupa.com/u/revelations1318)\
**Post date:** [January 16, 2009, 11:57am UTC](https://forum.kirupa.com/t/date-string-into-images/279593/1 "2009-01-16T11:57:55Z")

</div>

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
<?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 🙂
