PHP str_replace with file_put_contents, interacting with cache

Not sure why, but the problem is here, this is the last line in my PHP, through the global.php file, I save the cleaned data in the cache folder. In the situation below, I am saving it as "s & pcurrent". In my release, I get a "+" which I don't want that from the original content. Likewise, I created str_replace to get rid of the + with a space ''

However this doesn't work, I have to format it somehow. Any tips? Many thanks.

file_put_contents(globalVars::$_cache_dir . "s&pcurrent", str_replace('+', ' 
', $ret_[0]);

      

+3
php caching replace


source to share


No one has answered this question yet

Check out similar questions:

4270
Link. What does this symbol mean in PHP?
2776
How can I prevent SQL injection in PHP?
2414
Why shouldn't I use the mysql_ * functions in PHP?
2335
Removing an element from an array in PHP
2024
How do you parse and process HTML / XML in PHP?
1906
How does PHP foreach work?
1554
Disable Chrome cache for website development
1398
How do we control web page caching in all browsers?
1001
Is Safari iOS 6 caching $ .ajax results?
951
How do I force the browser to reload the cached CSS / JS files?



All Articles
Loading...
X
Show
Funny
Dev
Pics