isPunctuation

Determine if the string is composed of punctuation characters.

Twine\Str::isPunctuation() : bool

Examples

$string = new Twine\Str('*&$();,.?');

        $string->isPunctuation(); // Returns true
$string = new Twine\Str('john pinkerton');

        $string->isPunctuation(); // Returns false