note 129394 added to function.str-ireplace

From: Date: Thu, 11 Apr 2024 11:37:30 +0000
Subject: note 129394 added to function.str-ireplace
Groups: php.notes 
Request: Send a blank email to php-notes+get-221282@lists.php.net to get a copy of this message
Attention! str_ireplace does not destroy multibyte characters. But multibyte characters are not replaced case-insensitively. <?php echo str_ireplace('Ä', 'Ae_', 'Ägypten'); // Ae_gypten echo str_ireplace('ä', 'ae_', 'ägypten'); // ae_gypten echo str_ireplace('ä', 'ae_', 'Ägypten'); // Ägypten echo str_ireplace('Ä', 'ae_', 'ägypten'); // ägypten echo str_ireplace('E', 'e_', 'egypt'); // e_gypt echo str_ireplace('e', 'e_', 'Egypt'); // e_gypt echo str_ireplace('ä', 'ae_', mb_strtolower('Ägypten')); // ae_gypten ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.13.131 (proxied: 79.140.117.247) ---- Manual Page -- https://php.net/manual/en/function.str-ireplace.php Edit -- https://main.php.net/note/edit/129394 Del: integrated -- https://main.php.net/note/delete/129394/integrated Del: useless -- https://main.php.net/note/delete/129394/useless Del: bad code -- https://main.php.net/note/delete/129394/bad+code Del: spam -- https://main.php.net/note/delete/129394/spam Del: non-english -- https://main.php.net/note/delete/129394/non-english Del: in docs -- https://main.php.net/note/delete/129394/in+docs Del: other reasons-- https://main.php.net/note/delete/129394 Reject -- https://main.php.net/note/reject/129394 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221282) next »