# sam.Util.parse\_args

> #### [**a**rray](https://wiki.facepunch.com/gmod/table)\[[**string**](https://wiki.facepunch.com/gmod/string)] sam.Util.parse\_arg&#x73;**(** [**string**](https://wiki.facepunch.com/gmod/string) **text )**

## Description

Turn text into arguments.

## Aguments

1. #### [**string**](https://wiki.facepunch.com/gmod/string) **text**

## Returns

1. #### [**a**rray](https://wiki.facepunch.com/gmod/table)\[[**string**](https://wiki.facepunch.com/gmod/string)]

## Example

```lua
local args = Util.parse_args('hi    there  "mr srlion!" ok.')
PrintTable(args)
-- output:
{
    "hi",
    "there",
    "mr srlion!",
    "ok."
}
```
