Get JSON Data size in Byte
Krixnaas

Krixnaas @krixnaas

About: Blockchain Enthusiast & Full Stack Developer <br/>Here, I collect all the goodies I can find while I learn as much as I can about web-development.

Location:
Australia
Joined:
Oct 9, 2021

Get JSON Data size in Byte

Publish Date: May 18 '22
5 0
$size = mb_strlen(json_encode($content, JSON_NUMERIC_CHECK), '8bit');
Enter fullscreen mode Exit fullscreen mode

echo $size;

Comments 0 total

    Add comment