extractId()
extractId(string|integer $from) : integer
Extract an ID from an API URL. The ID must be at the tail end of the URL with an optional forward slash following it.
Parameters
string|integer | $from | The input to attempt to extract an ID from. |