php pass a variabele to js
snippet in php

php pass a variabele to js

user9830

<script>
'var name = <?php echo json_encode($name); ?>;
</script>'