Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Post formatting
Source Link
Nimantha
  • 6.5k
  • 6
  • 32
  • 78

Is very simple I use this way:

JAVASCRIPT:

var arrayJavascript = <?php echo json_encode($arrayPhp) ?>;

Convert PHP array to Javascript

Regards!

Is very simple I use this way:

JAVASCRIPT:

var arrayJavascript = <?php echo json_encode($arrayPhp) ?>;

Convert PHP array to Javascript

Regards!

Is very simple I use this way:

JAVASCRIPT:

var arrayJavascript = <?php echo json_encode($arrayPhp) ?>;

Convert PHP array to Javascript

Source Link

Is very simple I use this way:

JAVASCRIPT:

var arrayJavascript = <?php echo json_encode($arrayPhp) ?>;

Convert PHP array to Javascript

Regards!