Hi i have a json string with some number inside a double quots: how can split it and get exact json string.
$json = "0498[{key:value},{key:value}]"
This is pretty simple, but while trying out 🙁
<?php
preg_split('#(?<=\d)(?=[a-z])#i', "0498[{key:value},{key:value}]")
?>
But my issue is the integer append to the json is dynamic, it will change time by time so how can i split it?
1 Answer