| | |
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 |
advanced apache api array beginner binary broken cakephp check checkbox class cms code cookies cron curl database date datepart display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google head href htaccess html if...loop image include includingmysecondfileinthechain insert ip javascript job joomla jquery key library limit link login mail menu mlm multiple mysql oop password paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search server sessions smarty sms sorting source space sql startup stored syntax system table traffic tutorial unicode update upload url validator variable video web youtube zend






