|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-08-30 21:42 UTC] scott at incursio dot com
trim() seems to work, but rtrim/chop don't appear to kill a null at the end of a string variable. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 06:00:01 2025 UTC |
This seems to work with me (4.0.7): <?php var_dump(trim("abc\0")); var_dump(rtrim("abc\0")); ?> Please see www.php.net/support.php for support questions, and only resubmit if they can't find the problem...