I have the following array:
$given_themes = array("ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", "Haskell", "Java", "JavaScript", "Lisp", "Perl", "PHP", "Python", "Ruby", "Scala", "Scheme");
I want to use these items in the following autocomplete script, but it is not working... How do I get it to recognize the array values? I am sure it has something to do with how I call the variable $given_themes...
<script>
$(function() {
var availableTags = [ <?php $given_themes; ?>];
$( "#tags" ).autocomplete({
source: availableTags
});
});
</script>
<input name="theme" type="text" id="tags" value="<?php print "$theme"; ?>"/>