Php Array Convert to Java Script Array

PHP

<? $a[]="one"; $a[]="two"; $a[]="three"; $a[]="four"; ?> <html> <head> <title>Assign PHP Array to Javascript Array</title> <script language="javascript"> function showValues(){ var a=new Array; <? for($i=0;$i<count($a); $i++){ echo "a[$i]='".$a[$i]."';\n"; } ?> for(i=0;i<a.length;i++) alert(a[i]); }  </script> </head> <body More...

by admin | Published 61 days ago
By vimal On Saturday, November 26th, 2011
0 Comments

Creative Buttons- PSD

Category:  Buttons White&blue set Today`s freebie is a huge one, it`s a complete web/UI elements pack! Power button Today`s freebie is a power on button in 3 states – normal, hover and active… CTA More...

By vimal On Saturday, November 26th, 2011
0 Comments

jQuery Fancy Switch

jQuery Fancy Switch I wrote a post a while back on coding an iPhone style switch using jQuery. I’ve now put together a simple tutorial demonstrating how simple it is to build a switch that triggers two radio More...