Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Converting PHP Array to JS Array

<script>
      const jsArray = <?php echo json_encode($images); ?>;
</script>
===
  echo '<script>console.log('.json_encode(get_role($urole)).')</script>';
Source by www.codexworld.com #
 
PREVIOUS NEXT
Tagged: #Converting #PHP #Array #JS #Array
ADD COMMENT
Topic
Name
4+7 =