PHP 8.5.0 Alpha 1 available for testing

Voting

: seven plus zero?
(Example: nine)

The Note You're Voting On

teddanzig at yahoo dot com
16 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