4 ms·
You can in PHP [1] and JavaScript [2] - though neither is pretty, so I'd endorse this suggestion. [1] http://stackoverflow.com/questions/2925044/hyphens-in-key
by jtruk 12y ago
You can in PHP [1] and JavaScript [2] - though neither is pretty, so I'd endorse this suggestion.
[1] http://stackoverflow.com/questions/2925044/hyphens-in-keys-of-object http://stackoverflow.com/questions/2925044/hyphens-in-keys-o...
[2] http://stackoverflow.com/questions/7122609/how-do-i-reference-a-javascript-object-property-with-a-hyphen-in-it http://stackoverflow.com/questions/7122609/how-do-i-referenc...
- tyuwan 12y agoYup, There is more than one way to handle it but it's not developer-friendly.