Skip to content
Advertisement

How to turn associative array into separate variables? [closed]

Here is an example:

PHP:::

JavaScript

response

JavaScript

I want to set this like

JavaScript

Advertisement

Answer

If you mean to assign value to new variables, simply do it using the assignment operator = in PHP.

JavaScript

Read more about assignment operator in PHP.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement