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

 ID:                 63470
 User updated by:    nadir dot hajiyani at gmail dot com
 Reported by:        nadir dot hajiyani at gmail dot com
 Summary:            The program does not give the correct output
 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:

Ya that is correct, this is not a bug. Just that the output is not visible 
unless 
from view source.


Previous Comments:
------------------------------------------------------------------------
[2012-11-09 03:35:18] ras...@php.net

I bet hitting "view source" would clear this one up for you.

------------------------------------------------------------------------
[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