Quantcast
Channel: json_encode change number into string - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by dave for json_encode change number into string

I am guessing online you have an older version of PHP: JSON_NUMERIC_CHECK (integer) Encodes numeric strings as numbers. Available since PHP 5.3.3. When you JSON encode, it will not have quotes if PHP...

View Article


json_encode change number into string

I have an array which has some strings values and some numeric values. I used json_encode to convert array into json array but it convert numbers values into string which I do not want....

View Article

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>