$str = new \SimpleXMLElement ($xml, LIBXML_NOCDATA);
$str = json_decode(json_encode($str), true);

对于LIBXML_NOCDATA,在PHP手册上描述为:

Merge CDATA as text nodes