Insert Chars into a string

From: Date: Thu, 14 Apr 2005 17:53:09 +0000
Subject: Insert Chars into a string
Groups: php.general 
Request: Send a blank email to php-general+get-213104@lists.php.net to get a copy of this message
Hello, I have a variable that contains a filename, I want to be able to insert the date and time just before for the ".jpg" for example if my filename is 'pic.jpg' I want it to read 'pic_Monday 15th of January 2003 05:51:38 AM.jpg (or if anyone else knowshow to write the time and time all in numbers it would be appreciated as I'm using ate("l dS of F Y h:i:s A") which obviously is a bit long. Many thanks. Kaan

« previous php.general (#213104) next »