I have a PHP file with an Array ($phpArray) in it and I am trying to pass it through a function in a JS File (data.js). I can figure out how to do it. Any suggestions?
dataInput.php (PHP File)
<?PHP
$phpArray=[[1,2,3,4,5],
[2,3,5,6,7]];
?>
data.js (JS File)
function getRaceResults1(){
phpArray[] -> jsArray[];
return jsArray;
}