Posts by Renzo Nogueira • 1 point
1 post
-
-1
votes4
answers2698
viewsA: How to pass php array to javascript
Transform array and JSON using json_encode. In javascript get this JSON const MyArrayJS= (<?php echo json_encode($myArrayPHP)?>);
1 post
-1
votes4
answers2698
viewsTransform array and JSON using json_encode. In javascript get this JSON const MyArrayJS= (<?php echo json_encode($myArrayPHP)?>);