212
I Use This!
Very Low Activity

News

Analyzed about 1 hour ago. based on code collected about 1 hour ago.
Posted about 13 years ago by Mathieu M-Gosselin
I rewrote _copy (lines 23 to 38) to correctly take into account simple arrays (containing integers, strings or booleans) when copying, instead of casting them to objects, which caused problems when trying to access the .length property (that objects ... [More] don't have, but arrays do). (I discovered that problem while using phpjs' money_format() and trying to copy locales. If, for example, the en_US LC_MONETARY.mon_grouping wasn't redefined (as it is) after cloning it from en, the thousands grouping would plainly not work, while it should. http://jsfiddle.net/jHGBR/ or // BEGIN STATIC var _copy = function _copy(orig) { if (orig instanceof RegExp) { return new RegExp(orig); } else if (orig instanceof Date) { return new Date(orig); } if( Object.prototype.toString.call( orig ) === '[object Array]' ) { return orig.slice(0); } else { var newObj = {}; for (var i in orig) { if (typeof orig[i] === 'object') { newObj[i] = _copy(orig[i]); } else { newObj[i] = orig[i]; } } return newObj; } };​ Sources: http://stackoverflow.com/questions/4690520/javascript-object-literal-length-undefined http://stackoverflow.com/questions/4775722/javascript-check-if-object-is-array http://my.opera.com/GreyWyvern/blog/show.dml/1725165 [Less]
Posted about 13 years ago by Jason Butz
The following is not handled correctly. str_getcsv('"0","Text 1",0,0,0,0,0,"Text2"'); It is parsed to [ '0', '"Text 1",0,0,0,0,0,"Text2"' ] It should be It is parsed to [ '0', 'Text 1', '0', '0', '0', '0', '0', ... [More] 'Text2' ] I am ignoring types, but I think you should get the idea. I'm not even I would consider types important. [Less]
Posted about 13 years ago by cutegirl
Nice share info <a href="http://www.kizi.5ire.com/>Kizi</a>
Posted about 13 years ago by Brett Zamir
@CyberCrasher: Please note the field that it depends on "setlocale", another function.
Posted about 13 years ago by CyberCrasher
It produces this error: Uncaught TypeError: Object [object Window] has no method 'setlocale'
Posted about 13 years ago by CymnMda
buy azithro http://zithromaxs.com/ zithromax stomach upset
Posted about 13 years ago by hieshibre
Posted about 13 years ago by Jaroslaw Czarniak
Unserialize doesn't work (again) with german umlauts (ö, ä, ü, ß) and other not latin characters. for example folowing code: var test = { a: "Martin", b: "Schmidt", c: "äöüß", d: "&&%%$$" }; var x = serialize(test); var ... [More] test2 = unserialize(x); return: a => "Martin" b => "Schmidt" c => "䶼߀" d => "&&%%$$" is there any way to fix it ? [Less]
Posted about 13 years ago by ERASEthemasterswordsman
Please note that hashing a has is not completely secure, but can be used as an extra precaution (but not recommended): <?php sha1(md5($string)); ?>
Posted about 13 years ago by Charles Wilder
I just wanted say thank you to all the developer's. <"charles5306">