0
How to json encode Specific key in PHP?
5 Antworten
+ 1
I have an idea using array_filter(), but I'm not sure.
https://code.sololearn.com/wc5dYHIT3eZC/?ref=app
+ 1
Do you have any specification about which key to be selected? or just random one?
For the example in your code, which particular one is to be selected?
+ 1
Ipang I want to select key1 to json encode
+ 1
Thank you Ipang
+ 1
No problem 👌