note 117268 modified in function.trim by cmb

From: Date: Wed, 13 May 2015 17:58:55 +0000
Subject: note 117268 modified in function.trim by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-202516@lists.php.net to get a copy of this message
Trim full width space will return mess character, when target string starts with '《' @example echo trim("《", " "); @return � php version 5.4.27 [EDIT by cmb AT php DOT net: it is not necessarily safe to use trim with multibyte character encodings. The given example is equivalent to echo trim("\xe3\80\8a", "\xe3\x80\x80").] --was-- Trim full width space will return mess character, when target string starts with '《' @example echo trim("《", " "); @return � php version 5.4.27 http://php.net/manual/en/function.trim.php

« previous php.notes (#202516) next »