0

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? Commented Aug 19, 2021 at 5:15
  • 1
    Please 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? Commented Aug 19, 2021 at 5:23

1 Answer 1

1
array(
  "term" => array(
      "condition" => array("on", "off"),
  ),
),
Sign up to request clarification or add additional context in comments.

3 Comments

Thanks, can you guide me for any free php tutorials
Tutorials? You bet? There are a lot, but Stack Overflow is not for tutorial recommendations.
A short array syntax exists which replaces array() with [], Using better the short array syntax.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.