Reply to What is wrong with: str_replace('\\', '\', $content);

Your name:

Reply:


Posted by jodleren on 01/10/08 08:19

Hi all

I have text area, where I can edit files - but I have to correct the
returned data, for that I use

$content=str_replace('\"', '"', $content);
and
$content=str_replace('\\', '\', $content);

by some reason the latter one causes an error: syntax error,
unexpected T_VARIABLE in....
Replacing :-) it by

$content=str_replace("\\\\", "\\", $content);

and it works

what is wrong with '\\' ?

WBR
Sonnich

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация