PHP 8.4.24 Released!

Voting

: two minus zero?
(Example: nine)

The Note You're Voting On

bob at example dot com
14 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