... hai provato con la funzione json_encode?
codice:
<?php
/** ... ARRAY PHP */
$arrPHP = [["London Eye, London", 38.18249, 15.240766300000018],
["London Eye, London", 38.18249, 15.240766300000018]
];
/** ... ENCODE VIA JSON (Array to String) */
$valore = json_encode( $arrPHP );
?>
<script>
nomefunzione('<?php echo $valore ?>');
function nomefunzione( valore )
{
/** ... PARSE VIA JSON ( String to Array ) */
var resultdata = JSON.parse( valore );
alert( resultdata[0][0]);
alert( resultdata[0][1]);
alert( resultdata[0][2]);
/** ... */
}
</script>