note 127911 added to function.str-ends-with

From: Date: Wed, 09 Nov 2022 22:33:52 +0000
Subject: note 127911 added to function.str-ends-with
Groups: php.notes 
Request: Send a blank email to php-notes+get-219866@lists.php.net to get a copy of this message
better real world example i ran into if (str_ends_with($name, '-')) { $url = "https://www.website.com/authors/{$name}quotes"; } else { $url = "https://www.website.com/authors/{$name}-quotes"; } ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.159.161 (proxied: 2607:fb90:d5a7:c3ae:8340:67d5:5f8f:d839) ---- Manual Page -- https://php.net/manual/en/function.str-ends-with.php Edit -- https://main.php.net/note/edit/127911 Del: integrated -- https://main.php.net/note/delete/127911/integrated Del: useless -- https://main.php.net/note/delete/127911/useless Del: bad code -- https://main.php.net/note/delete/127911/bad+code Del: spam -- https://main.php.net/note/delete/127911/spam Del: non-english -- https://main.php.net/note/delete/127911/non-english Del: in docs -- https://main.php.net/note/delete/127911/in+docs Del: other reasons-- https://main.php.net/note/delete/127911 Reject -- https://main.php.net/note/reject/127911 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219866) next »