for numbers: jsarray= new Array(<?= implode(',',$phparray) ?>); for strings: jsarray= new Array("<?= implode('","',$phparray) ?>");
Christian Ista wrote:
Hello,
Could you tell me how to transform a PHP query result to a javascript array ?
Same question, if you want to store several field from the query to the javascript.
Christian,
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php