PHP 8.4.24 Released!

Voting

: two minus zero?
(Example: nine)

The Note You're Voting On

juliyvchirkov at gmail dot com
5 years ago
<?php

// Polyfill for PHP 4 - PHP 7, safe to utilize with PHP 8

if (!function_exists('str_contains')) {
    function str_contains (string $haystack, string $needle)
    {
        return empty($needle) || strpos($haystack, $needle) !== false;
    }
}

<< Back to user notes page

To Top