ctype_alnum
function
ctype_alnum
returns true if the value contains only alphanumeric letters. In the example
IF
statement will be executed because the value is alphanumeric
$var = 'as2df234asdf';

if (ctype_alnum($var)) {
	echo 'if';
} else {
	echo 'else';
}
by Valeri Tandilashvili
2 years ago
PHP
functions
0
Pro tip: use ```triple backticks around text``` to write in code fences