| | |
Replace "
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hey
Does anyone knows how do I replace a " (double quote) in a string with nothing
I tried the following but does not work
Plz help
Thanx
Does anyone knows how do I replace a " (double quote) in a string with nothing
I tried the following but does not work
PHP Syntax (Toggle Plain Text)
$message = str_replace(""","",$_REQUEST['txtMessage']); or $message = str_replace("""","",$_REQUEST['txtMessage']); or $message = str_replace("\"","",$_REQUEST['txtMessage']);
Plz help
Thanx
•
•
Join Date: Oct 2006
Posts: 14
Reputation:
Solved Threads: 0
Let's see:
And then:
Does that work..?
PHP Syntax (Toggle Plain Text)
<?php function quotereplace($text) { $text = str_replace("\"", "", $text); return $text; } ?>
And then:
PHP Syntax (Toggle Plain Text)
<?php $yourtext = 'Hello, my name is "Anders Moen" and my site is "www.andersmoen.com"'; echo quotereplace($yourtext); ?>
Does that work..?
![]() |
Similar Threads
- " ' " and post method : use of replace function ? (ASP)
- Should replacing a 15" laptop screen with 14.1" make a difference? (Monitors, Displays and Video Cards)
- Jscript Replace Function (ASP)
- Find and Replace (Database Design)
Other Threads in the PHP Forum
- Previous Thread: Web form
- Next Thread: PHP and MySQL
| Thread Tools | Search this Thread |
ajax apache api array arrays beginner binary broken cache cakephp checkbox class cms code confirm cron curl customizableitems database date display dynamic echo email error external file files folder form forms forum function functions google header headmethod howtowriteathesis href htaccess html iframe image include insert integration ip java javascript joomla limit link login loop mail malfunction menu method mlm multiple mysql neutrality oop paypal pdf php phpmysql play problem query question radio random recursion regex remote root script search select server sessions sms soap source space sql syntax system table tutorial update upload url validator variable video web xml youtube






