Bug #63470 [Opn->Nab]: The program does not give the correct output
| From: | rasmus@php.net | Date: | Fri, 09 Nov 2012 03:35:18 +0000 |
| Subject: | Bug #63470 [Opn->Nab]: The program does not give the correct output | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-174592@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63470&edit=1
ID: 63470
Updated by: rasmus@php.net
Reported by: nadir dot hajiyani at gmail dot com
Summary: The program does not give the correct output
-Status: Open
+Status: Not a bug
Type: Bug
Package: PHP options/info functions
Operating System: Mac OS X version 10.8.2
PHP Version: 5.3.18
Block user comment: N
Private report: N
New Comment:
I bet hitting "view source" would clear this one up for you.
Previous Comments:
------------------------------------------------------------------------
[2012-11-09 02:59:51] nadir dot hajiyani at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.str-replace#refsect1-function.str-
replace-examples
---
// Provides: <body text='black'>
$bodytag = str_replace("%body%", "black", "<body
text='%body%'>");
This is not printed as mentioned in the code instead the code in test script
works.
Test script:
---------------
// Provides body text='black'>
$phrase = "body text='%body%'>";
$healthy = "%body%";
$yummy = "black";
echo $newphrase = str_replace($healthy, $yummy, $phrase);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63470&edit=1