View Single Post
Old 06-29-2009, 04:56 PM   #4 (permalink)
Village Idiot
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

The simplest way would be to do this (short answer: use explode):
PHP Code:
$time="10:15:43";
$tPieces explode(":",$time);
$hour $tPieces[0];
$min $tPieces[1];
$sec =$tPieces[2]; 
__________________

Village Idiot is offline  
Reply With Quote