Answers for "php array in javascript"

PHP
1

copy php array to javascript

var js_array = [<?php echo '"'.implode('","', $php_array).'"' ?>];
Posted by: Guest on March-29-2020
0

use php array in javascript

var passedArray = <?php echo json_encode($sampleArray); ?>
Posted by: Guest on October-05-2021
0

php array

array (
  0 => '1',
  1 => '2',
  2 => '3',
  3 => '4',
)
Posted by: Guest on July-23-2021

Code answers related to "php array in javascript"

Browse Popular Code Answers by Language