note 126276 added to function.str-starts-with

From: Date: Mon, 26 Jul 2021 11:27:23 +0000
Subject: note 126276 added to function.str-starts-with
Groups: php.notes 
Request: Send a blank email to php-notes+get-216661@lists.php.net to get a copy of this message
<?php // Polyfill for PHP 4 - PHP 7, safe to utilize with PHP 8 if (!function_exists('str_starts_with')) { function str_starts_with (string $haystack, string $needle) { return empty($needle) || strpos($haystack, $needle) === 0; } } ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 176.37.146.183) ---- Manual Page -- https://php.net/manual/en/function.str-starts-with.php Edit -- https://main.php.net/note/edit/126276 Del: integrated -- https://main.php.net/note/delete/126276/integrated Del: useless -- https://main.php.net/note/delete/126276/useless Del: bad code -- https://main.php.net/note/delete/126276/bad+code Del: spam -- https://main.php.net/note/delete/126276/spam Del: non-english -- https://main.php.net/note/delete/126276/non-english Del: in docs -- https://main.php.net/note/delete/126276/in+docs Del: other reasons-- https://main.php.net/note/delete/126276 Reject -- https://main.php.net/note/reject/126276 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216661) next »