PHP 8.4.24 Released!

Voting

: min(six, two)?
(Example: nine)

The Note You're Voting On

teddanzig at yahoo dot com
17 years ago
routine to return -1 if there is no match for strpos

<?php
//instr function to mimic vb instr fucntion
function InStr($haystack, $needle)
{
    $pos=strpos($haystack, $needle);
    if ($pos !== false)
    {
        return $pos;
    }
    else
    {
        return -1;
    }
}
?>

<< Back to user notes page

To Top