Answers for "how to remove space in json object php"

PHP
0

remove space and line from json in php

$before = '{ "key": "value with whitespaces to maintain" }';
$after  = json_encode(json_decode($before));
Posted by: Guest on June-08-2021

Browse Popular Code Answers by Language