Bug #66467 [Opn->Nab]: Hidden because of SPAM
| From: | requinix@php.net | Date: | Sun, 12 Jan 2014 00:10:53 +0000 |
| Subject: | Bug #66467 [Opn->Nab]: Hidden because of SPAM | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183727@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66467&edit=1
ID: 66467
Updated by: requinix@php.net
Reported by: krunaldoshi202 at gmail dot com
Summary: Hidden because of SPAM
-Status: Open
+Status: Not a bug
Type: Bug
Package: Output Control
Operating System: Cent os 6.4
PHP Version: 5.4.24
Block user comment: N
Private report: N
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
trim() works on the character level. You told it to rtrim the characters
< > , / a n p s
so it did.
If you want a portion of the string, like everything up to that <span></span>, then use
substr().
http://www.php.net/substr
Previous Comments:
------------------------------------------------------------------------
[2014-01-11 17:00:48] krunaldoshi202 at gmail dot com
Description:
------------
Its very simple error in rtrim function might be wrong pattern matching
Test script:
---------------
echo rtrim("<a title=\"Music Directed by A.R. Rahman\"
href=\"/music-directors/a-r-rahman.html\">A.R. Rahman</a><span>,
</span>","<span>, </span>");
Expected result:
----------------
<a title=\"Music Directed by A.R. Rahman\"
href=\"/music-directors/a-r-rahman.html\">A.R. Rahman</a>
Actual result:
--------------
<a title="Music Directed by A.R. Rahman"
href="/music-directors/a-r-rahman.html">A.R. Rahm
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66467&edit=1