Re: [PHP] Is this list less busy than it used to be?
Well, I think you are right. Take a look at this graph of the number of messages posted starting in 1998. The stackoverflow.org effect? messages - https://docs.google.com/spreadsheet/ccc?key=0Ak1QF0ijPYbedDNvb19SQl80MHcxUWhhbTZOYm5FUlE Erwin 2012/7/4 RGraph.net support > Hi, > > Is this list less busy than it used to be? Or is it just me? When I > used to be on this list ISTR sometimes being overwhelmed by email. > > Cheers > > -- > Richard, RGraph.net support > RGraph: JavaScript charts for your website > http://www.rgraph.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
Re: [PHP] Way to test if variable contains valid date
Or you could use a regular expression: $probe = '2000-01-01'; $found = preg_match('/(19|20)\d\d[- \.](0[1-9]|1[012])[- \.](0[1-9]|[12][0-9]|3[01])/', $probe); var_dump($found==1); Erwin 2012/7/3 shiplu > > > > > > I want to thank you, Daniel, for this help. - I was looking for an > > "isarray" type function > > > There is no such function or facility in php. However you can check date in > string by DateTime object also > > try { > $date = new DateTime('2000-01-01'); > } catch (Exception $e) { > echo $e->getMessage(); > exit(1); > } > > Check php.net/datetime.construct > > -- > Shiplu.Mokadd.im > ImgSign.com | A dynamic signature machine > Innovation distinguishes between follower and leader >
Re: [PHP] Destructor not called when extending SimpleXMLElement
Interesting problem. I would expect it to work too. I assume it is a bug. 2012/7/2 Nick Chalk > Afternoon all. > > I seem to be having a little trouble with extending the > SimpleXMLElement class. I would like to add a destructor to the > subclass, but am finding that it is not called. > > Attached is a minimal demonstration of the problem. The XMLConfig > class extends SimpleXMLElement, and its destructor is not called. The > XMLConfig2 class, which does not use inheritance, does have its > destructor called. > > The test platform is CentOS 6.2, with PHP version 5.3.3. > > What am I missing? > > Thanks for your help. > Nick. > > -- > Nick Chalk. > > Loadbalancer.org Ltd. > Phone: +44 (0)870 443 8779 > http://www.loadbalancer.org/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >