View Single Post
  #1 (permalink)  
Old 03-26-2008, 08:04 AM
edhan's Avatar
edhan edhan is offline
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Singapore
Posts: 716
edhan RepRank 3edhan RepRank 3edhan RepRank 3
Question How to remove double quote?

Hi

Hope this is the correct forum to write. If not, kindly redirect the right section.

I have this problem of removing the double quote. Here is an example.

$movie = http://domain.com/asjierek"

The $movie will provide different source dynamically. This means the next time, it can show as:

$movie = http://domain.com/dskeijkl"

My problem is how to remove the double quote at the end.

I tried doing this:

$characters_to_remove = array('"');
$replace_with = array('');
$movie = str_replace($characters_to_remove,$replace_with,$r ow['movie']);

But it turns out blank when I echo $movie

As I am not good for programming, any help or advice is greatly appreciated.

Thanks!
Reply With Quote