Huge input lookup error on simplexml_load_string function
问题 I have an API response where sizes vary. It doesn't show error on large xml data(appx. 20MB), when I try to convert the xml object into std object using. This is my code $xml = simplexml_load_string($apiResponse); $object = json_decode(json_encode($xml)); Error Message is: simplexml_load_string(): Entity: line 1: parser error : internal error: Huge input lookup I google and found this answer on stackoverflow and changed my code to simplexml_load_string($apiResponse, 'SimpleXMLElement', LIBXML