public warnings ( string | array $options = [] ) : Notices | string | ||
$options | string | array | One or more of array elements or space separated string of: first: only first item will be returned (string) last: only last item will be returned (string) all: include all warnings, including those beyond the scope of this object clear: clear out all items that are returned from this method array: return an array of strings rather than series of Notice objects. string: return a newline separated string rather than array/Notice objects. |
return | Notices | string | Array of NoticeError error messages or string if last, first or str option was specified. |