I need some guidance on how to correctly implement the line: $data=str_replace(" ",",",$data); Where do I add it, and do I need other commands, for example function (){ ? Thanks
$data is your string str_replace(old,new,string); So if you want to replace the character A in $data with an underscore: $data= str_replace('A','_',$data); Now $data has no A characters, they are now underscores.
Yes, I understand this. I'm using this line to remove the space between words in a search query so that rss feeds do not break. Spaces cause the feeds to return an error. For example, "music album" needs to be "music,album". But, I don't know where to add this line in my search engine script. Where does it usually go? Is it accompanied by other commands? Thanks