Theo Hendy
Member since Sep 24, 2010
- Profile: /members/6935-theo-hendy.htm
- Comments: 2
Recent Blog Comments By Theo Hendy
-
Ask Ben: Iterating Over An Array With jQuery
Posted on Sep 24, 2010 at 3:19 AM
oops.. sorry.. the PHP array should be in parentheses () not curly brackets {} sorry for the double post... read more »
-
Ask Ben: Iterating Over An Array With jQuery
Posted on Sep 24, 2010 at 3:16 AM
@Churchie, you could try echoing a string of joined PHP array in to the javascript <?php $phpArray = Array{"one","two","three"}; // convert it into string by using php join() $phpString = "'".join("','",$phpArray)."'"; // 'one','two','three' // echo it (write it to the source) echo "var jsAr... read more »