Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

ctype_punct()

3 tags 1 category

ctype_punct() — Check for any printable character which is not whitespace or an alphanumeric character.

ctype_punct() — Checks if all of the characters in the provided string, text, are punctuation character.

Inputs: text: The tested string. If an int between -128 and 255 inclusive is provided, it is interpreted as the ASCII value of a single character (negative values have 256 added in order to allow characters in the Extended ASCII range). Any other integer is interpreted as a string containing the decimal digits of the integer.

Returns: Returns true if every character in text is printable, but neither letter, digit or blank, false otherwise. When called with an empty string the result will always be false.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…