Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,895 questions

51,826 answers

573 users

How to use date_parse() function to get an array with detailed info about given date in PHP

1 Answer

0 votes
// array date_parse(string $date);
   
$arr = date_parse('2016-03-23 11:44:31');
echo "<pre>";
print_r($arr);
echo "</pre>";
 
/*
run:
    
Array
(
    [year] => 2016
    [month] => 3
    [day] => 23
    [hour] => 11
    [minute] => 44
    [second] => 31
    [fraction] => 0
    [warning_count] => 0
    [warnings] => Array
        (
        )

    [error_count] => 0
    [errors] => Array
        (
        )

    [is_localtime] => 
)
       
*/

 



answered Mar 23, 2016 by avibootz
...