var c = new String(); var d = new Date(); if(c instanceof Date){ alert("Yes it is object of String"); } else { alert("No it is object of String"); }
</script>
Code: <?php for($i=1;$i<=5;$i++){ print "The value of i is $i<br />"; } print "<br />"; $arr = array(10,20,35,15,80); for($i=0;$i<count($arr);$i++){ print "The value $i index= $arr[$i]<br />"; } ?>
Comments
Post a Comment