Re: [PHP] Slight cleaning of code needed in str_replace command.

2004-02-23 Thread Jason Wong
On Monday 23 February 2004 19:12, Dave G wrote: > So now it's working, and largely thanks to the suggestions you > gave. I would never have been able to guess on my own at using > var_dump() in order to get at the solution. Please don't assume that > just because a query is simple that it me

RE: [PHP] Slight cleaning of code needed in str_replace command.

2004-02-23 Thread Dave G
Jason, Have no worries, I'm not looking for anyone to write my code for me. It's precisely because the str_replace command is so simple that I figure if the results are strange that there is something I don't understand. And I want to understand it, not just be given code to copy and paste.

Re: [PHP] Slight cleaning of code needed in str_replace command.

2004-02-21 Thread Jason Wong
On Sunday 22 February 2004 00:23, Dave G wrote: > It's not as if I haven't experimented with different settings, but they > haven't been successful. By "settings" one usually means something which alters behaviour, as such str_replace() does not have any "settings". > In any case, rocket scienc

RE: [PHP] Slight cleaning of code needed in str_replace command.

2004-02-21 Thread Dave G
> Well, you asked for it. The usage of str_replace() is not > exactly rocket > science, since the output is not what you expected just > juggle your search & > replacement strings until it does what you want. It's not as if I haven't experimented with different settings, but they haven't been

Re: [PHP] Slight cleaning of code needed in str_replace command.

2004-02-21 Thread Jason Wong
On Saturday 21 February 2004 14:39, Dave G wrote: > Any advice would be most welcome. Well, you asked for it. The usage of str_replace() is not exactly rocket science, since the output is not what you expected just juggle your search & replacement strings until it does what you want. -- Jason