|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-29 14:40 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 15:00:01 2025 UTC |
Description: ------------ Instead of deleteting "/" char it makes a mysterious character (ord returns 000). ="" =null =false makes all the same thing Reproduce code: --------------- <? function return_url() { $url = "labas/"; if(strpos($url,"/")===0) $url[0]=""; $len = (strlen($url)-1); if(strrpos($url,"/")===$len) $url[$len]=""; return $url; } var_dump(return_url()); ?> Expected result: ---------------- string(6) "labas{strange char here}" Actual result: -------------- s