Voting

: five minus four?
(Example: nine)

The Note You're Voting On

bob at example dot com
13 years ago
Quick way to check if a string consists entirely of characters within the mask is to compare strspn with strlen eg:

<?php
$path
= $_SERVER['PATH_INFO'];
if (
strspn($path,'/') == strlen($path)) {
//PATH_INFO is empty
}
?>

<< Back to user notes page

To Top