Using For Loop for hours and time stamp

Hi
I have a loop running 1 - 23 for a 24 hour period.
I want to use todays date ie 23 April 2012 and get the unix timestamp for each hour
ie 23 Apr 2012 01:00, 23 Apr 2012 02:00 as the loop runs

tried using stringtotime but not getting the right results

Any help would be great

Steve

Welcome to SitePoint Forums!

You do realize 1-23 wont do 24 hours (that’s only 23 numbers. It’ll either be 0-23 or 1-24)

date(‘G’) = current time’s hour in 24 hour form without leading zero.

[FPHP]date[/FPHP]