PHP 8.4.24 Released!

Voting

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

The Note You're Voting On

marcokonopacki at hotmail dot com
23 years ago
<?

// Reverse search of strrchr.
function strrrchr($haystack,$needle)
{

    // Returns everything before $needle (inclusive).
    return substr($haystack,0,strpos($haystack,$needle)+1);
    
}

$string = "FIELD NUMBER(9) NOT NULL";

echo strrrchr($string,")"); // Will print FIELD (9)

?>

<< Back to user notes page

To Top