Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php pass a variabele to js

<script>
'var name = <?php echo json_encode($name); ?>;
</script>'
Source by www.w3docs.com #
 
PREVIOUS NEXT
Tagged: #php #pass #variabele #js
ADD COMMENT
Topic
Name
4+9 =