i am new to php, can someone helpme

This is php code
Code:
<?php

$test1=100;
$test2=200;
$test3=300;

?>
this is java script
Code:
<script type="text/javascript">
      function test() {
        var data = [  100,    1000,10000];
</script>
can i get value of $test1,$test2,$ test3 and replace value data with $test1,$test2,$ test3