PHP 8.4.24 Released!

Voting

: eight minus three?
(Example: nine)

The Note You're Voting On

AT-HE (at_he.hotmail)
15 years ago
you can use this function with strlen to check illegal characters, string lenght must be the same than strspn (characters from my string contained in another)

<?php

$digits='0123456789';

if (strlen($phone) != strspn($phone,$digits))
 echo "illegal characters";

?>

<< Back to user notes page

To Top