Posts by Daniel Duarte • 11 points
1 post
-
1
votes2
answers344
viewsA: How to add a PHP variable in Javascript?
This example shows the result in Javascript, using the json_encode, of a PHP associative array. Note that the associative array in PHP becomes a literal object in Javascript. Array in PHP: <?php…