212
I Use This!
Very Low Activity

News

Analyzed 18 minutes ago. based on code collected 21 minutes ago.
Posted almost 14 years ago by Daniele
This function would be so useful if it was reliable An example: PHP date("Y-m-d", strtotime('second Monday October 2011')); returns: 2011-10-10 (which is right) JS: date("Y-m-d", strtotime('second Monday October 2011')); returns: 1970-01-01 (which ... [More] is obviously wrong) Any solution, suggestion, work around? Is this function still maintained? If not, maybe I can start working with somebody to maintain it back. [Less]
Posted almost 14 years ago by Paulinakix
Posted almost 14 years ago by ZL@B
Posted almost 14 years ago by Brett Zamir
@max4ever: The latest version in Git now adds support for a single-argument-only call. Thanks!
Posted almost 14 years ago by Brett Zamir
@max4ever: Sorry, I mean it returns false--it indicates it is non-empty.
Posted almost 14 years ago by Brett Zamir
@max4ever: I don't know if you have any older version of the function or whether you were guessing that an array would not return "object" as a type (as it does in JavaScript even for arrays which are themselves objects), but in your example the empty() call returns true.
Posted almost 14 years ago by max4ever
usually in php array_filter($array), filters empty values(like '', 0, false ...)
Posted almost 14 years ago by max4ever
I think checks for array should be added, it doesn't work with var my_ditta = new Array(); my_ditta['tasse'] = 1; my_ditta['cartonaggio'] = 1; empty(my_ditta); //=> gives true, but it's obviously false
Posted almost 14 years ago by ToonyThockGox
Posted almost 14 years ago by Rafal
Great! Świetne, bardzo mi się przydało. Greetings from Poland - Rafal