generating js arrays with Flexy

From: Date: Mon, 05 Apr 2004 23:10:49 +0000
Subject: generating js arrays with Flexy
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11636@lists.php.net to get a copy of this message
Hi Alan I'm trying to dynamically build a js array with Flexy, it should end up looking like this: <script type="text/javascript"> aTitles_A = { "11":"Fonoregistrazione", "12":"Riversamento", "13":"Stenotipia", } </script> generated from a PHP hash $aStories = array( 11 => 'Fonoregistrazione', 12 => 'Riversamento', 13 => 'Stenotipia'); any suggestions? tia demian

« previous php.pear.general (#11636) next »