PHP function for make JSON

javascript, php Ноябрь 7th, 2008

PHP function for make JSON from array

Read the rest of this entry »

Tags: , , , , , ,

foreach in JavaScript

javascript, ПРОГРАММИРОВАНИЕ Июль 8th, 2008

Actually that’s not true at all.
As all javascript objects are really just associative arrays, there is a foreach like syntax for the ‘for’ construct.
Without it it would be very hard to work with many common javascript objects.
It’s actually very simple to use and incredibly useful if you like associative arrays.

You just have to make sure to use it on an associative array and not an object.
Example below

Read the rest of this entry »

Tags: , , ,