\RevelUtils

Summary

Methods
Properties
Constants
extractId()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

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.

Returns

integer