|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-06 10:04 UTC] iliaa@php.net
[2002-11-07 02:36 UTC] glanzafilippi at molinette dot piemonte dot it
[2002-11-07 05:21 UTC] m dot ford at lmu dot ac dot uk
[2002-11-07 05:35 UTC] glanzafilippi at molinette dot piemonte dot it
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 02:00:01 2025 UTC |
My Os is Linux Red Hat 7.3. Web Server is Zeus 4.1r3. I compiled php with fastcgi. i tried in several way but i noticed that in every case trim function doesn't work at all. This is a little piece of code: <?php // $user_data['unitHospital'] == "Osp. San Giovanni" $fileNameCleaned = trim($user_data['unitHospital']); print($fileNameCleaned); ?> Result Osp. San Giovanni OR directly <?php $tmp = trim("dd ff hhkkk"); print($tmp); ?> Result: dd ff hhkkk The same result with 'rtrim' -- 'ltrim' and with a direct specification of charlist. Thanks