Revision: 60001
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 15, 2012 07:36 by halk
Initial Code
//In PHP foreach($data as $key => $value){ //write code here } //In Javascript the same construct looks like this for(key in obj){ var value = obj[key]; //write code here }
Initial URL
Initial Description
This is the equivalent of doing php's foreach loop in javascript.
Initial Title
Javascript Equivalent Of PHP foreach
Initial Tags
Initial Language
JavaScript