public static function toThrowableTrace($ex)
    {
        $list = [];
        for ($stack = Throwable::getThrowableStack($ex); $stack !== null; $stack = $stack['prev'])
        {
            $list[] = Throwable::parseThrowableMessage($stack);
        }

        return array_reverse($list);
    }
public static function toThrowableTrace($ex)
    {
        $list = [];
        for ($stack = Throwable::getThrowableStack($ex); $stack !== null; $stack = $stack['prev'])
        {
            $list[] = Throwable::parseThrowableMessage($stack);
        }

        return array_reverse($list);
    }
public static function toThrowableTrace ( $ ex ) { $ list = [ ] ; for ( $ stack = Throwable :: getThrowableStack ( $ ex ) ; $ stack !== null ; $ stack = $ stack [ 'prev' ] ) { $ list [ ] = Throwable :: parseThrowableMessage ( $ stack ) ; } return array_reverse ( $ list ) ; }
Return Exception throwable trace in array format.

@param \Error|\Exception $ex
@return string[]
Return Exception throwable trace in array format .