/**
 * Returns true if the string contains only punctuation chars, false otherwise.
 *
 * @return bool Returns TRUE on success or FALSE otherwise.
 */
public function isPunctuation(): bool

Examples

if (Strings::create(',')->isPunctuation()) {
    // do something...
}

Getting Started

Methods