Returns array of suffixes for this file, or true/false if this file has the given suffix.
When providing a suffix, this method can be thought of: hasSuffix(suffix)
Usage
// basic usage
$array = $pageimage->suffix();
// usage with all arguments
$array = $pageimage->suffix(string $s = '');
Arguments
Name | Type(s) | Description |
---|---|---|
s (optional) | string | Optionally provide suffix to return true/false if file has the suffix |
Return value
array
bool
Returns array of suffixes, or true|false if given a suffix in the arguments.
Pageimage methods and properties
API reference based on ProcessWire core version 3.0.236