How can i do this?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
billy_111
Forum Newbie
Posts: 3
Joined: Sat Jul 04, 2009 6:26 am

How can i do this?

Post by billy_111 »

Hey,

I want to write PHP code to display something like to folowing:-

Code: Select all

Week Commencing July 13th
So what this is doing is looking at the week and displaying the first day. But this would chage if it was "1st" "2nd" and "3rd" if you know what i mean..

But is there any examples i can have a look at in order to achieve this..?

Thanks
Regards
Billy
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Re: How can i do this?

Post by Skara »

date()

Code: Select all

echo 'Week Commencing ' . date('F jS', $timestamp);
That what you were looking for?
Post Reply