How can I create the following using a PHP foreach from an array?
var options = [
{text: "one", value: 1},
{text: "two", value: 2},
{text: "three", value: 3},
{text: "four", value: 4}
];
my PHP Array looks like the following :
Array
(
[0] => Array
(
[value] => 25000
[text] => 25,000
)
[1] => Array
(
[value] => 25000
[text] => 25,000
)
)
text => text, value => value