Edit report at https://bugs.php.net/bug.php?id=63470&edit=1

 ID:                 63470
 Updated by:         ras...@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

Reply via email to