note 128642 added to function.strstr

From: Date: Mon, 26 Jun 2023 18:08:37 +0000
Subject: note 128642 added to function.strstr
Groups: php.notes 
Request: Send a blank email to php-notes+get-220602@lists.php.net to get a copy of this message
// Find string after a given prefix, with the search // anchored at the left of the input, case sensitive // Returns null if prefix not found or input is '' // Returns '' if prefix found at end of input // PHP warning if prefix is '' function AfterLeft($input,$prefix) { $pos=strpos($input,$prefix); if ($pos===0) return substr($input,strlen($prefix)); } // AfterLeft ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.13.130 (proxied: 98.2.238.89) ---- Manual Page -- https://php.net/manual/en/function.strstr.php Edit -- https://main.php.net/note/edit/128642 Del: integrated -- https://main.php.net/note/delete/128642/integrated Del: useless -- https://main.php.net/note/delete/128642/useless Del: bad code -- https://main.php.net/note/delete/128642/bad+code Del: spam -- https://main.php.net/note/delete/128642/spam Del: non-english -- https://main.php.net/note/delete/128642/non-english Del: in docs -- https://main.php.net/note/delete/128642/in+docs Del: other reasons-- https://main.php.net/note/delete/128642 Reject -- https://main.php.net/note/reject/128642 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220602) next »