Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert php array to javascript array

<script type="text/javascript">
var users = <?php echo json_encode($userArray); ?>;
</script>
Source by www.codexworld.com #
 
PREVIOUS NEXT
Tagged: #convert #php #array #javascript #array
ADD COMMENT
Topic
Name
2+2 =