I am new to code, learning by myself and with the help of stack overflow. I have one array, I want to pass another key value and want to make my string as an array, so that I can pass multiple key values.
2
-
Can you add the desired end result?idk wut to put here– idk wut to put here2021-08-19 05:15:14 +00:00Commented Aug 19, 2021 at 5:15
-
1Please post proper examples of before/after since it's very unclear how you want the result to actually be. Showing is always preferrable. Exactly when and how do you need to add it? What have you tried? And what does this have to do with json?M. Eriksson– M. Eriksson2021-08-19 05:23:55 +00:00Commented Aug 19, 2021 at 5:23
Add a comment
|
1 Answer
array(
"term" => array(
"condition" => array("on", "off"),
),
),
3 Comments
Alessa
Thanks, can you guide me for any free php tutorials
idk wut to put here
Tutorials? You bet? There are a lot, but Stack Overflow is not for tutorial recommendations.
Don Globian
A short array syntax exists which replaces array() with [], Using better the short array syntax.