Skip to content
Advertisement

Need to display only array value in JSON output

How to display only array value in JSON out in php

I am using below PHP code

JavaScript

And it return below output

JavaScript

But I need JSON output like below

JavaScript

Any one please help on this.

Advertisement

Answer

JavaScript

which outputs:

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