receive size from path(can be url or file path)
some urls will not return real size!
| Name | Type | Description | Required |
|---|---|---|---|
| path | string | file path, could be url | yes |
| format | bool | if you set this true , you will receive symbolic string like 2.76MB for return | no |
| space_between | bool | this will only work when format is true, convert 2.76MB to 2.76 MB | no |
Output : string | int | false
Static or normal : Static
tools::size('xFile.zip');tools::size('https://example.com/xFile.zip');