RE: [PHP] HELP!!! QUOTES!

From: Date: Fri, 24 May 2002 23:29:10 +0000
Subject: RE: [PHP] HELP!!! QUOTES!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99182@lists.php.net to get a copy of this message
Escape the quotes with \ echo "My dog has \"fleas\""; Or use single quotes echo 'My dog has "fleas"'; But note that variables aren't evaluated within single quotes. ---John Holmes... > -----Original Message----- > From: Shane [mailto:shane@delaplaine.com] > Sent: Friday, May 24, 2002 7:21 PM > To: php-general@lists.php.net > Subject: [PHP] HELP!!! QUOTES! > > Question Please. > > What is the syntax for getting double quotes to appear in an echo > statement. > > EXAMPLE: > > echo "My dog has 'fleas'"; > > puts out... My dog has 'fleas' > > But I need it to put out... My dog has "fleas" (NOTE DOUBLE QUOTES) > (So I can call a JavaScript function) > > What am I missing here? > > As always... Thanks in advance my friends. > - Shane > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#99182) next »