Re: how to split the stirng(02-02-2009 13:24:27)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Try this its a more direct way

<?php
$today = getdate();
print_r($today);
echo $today['mday'


].'-'.$today['mon'

].'-'.$today['year'
].' '.$today['hours'].':'.$today['minutes
'];
 ?> 


Array
(
    [seconds] => 40
    [minutes] => 58
    [hours]   => 21
    [mday]    => 17
    [wday]    => 2
    [mon]     => 6
    [year]    => 2003
    [yday]    => 167
    [weekday] => Tuesday
    [month]   => June
    [0]       => 1055901520



)

--- On Mon, 2/2/09, malayappa2000 <malayappa@xxxxxxxxxxxxxxxxxx> wrote:
From: malayappa2000 <malayappa@xxxxxxxxxxxxxxxxxx>
Subject:  how to split the stirng(02-02-2009 13:24:27)
To: php-objects@xxxxxxxxxxxxxxx
Date: Monday, February 2, 2009, 4:01 AM










    
            hi guys



we are the fallowing sting



01-31-2009 13:24:27

 we need to split sec in the above stirng i.e we need out put in the

fallowing formta



01-31-2009 13:24  



provide some help ho to achive this.

 




      

    
    
	
	 
	
	








	


	
	


      

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux