Re: HELP!!! QUOTES!

From: Date: Fri, 24 May 2002 23:26:30 +0000
Subject: Re: HELP!!! QUOTES!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99181@lists.php.net to get a copy of this message
Well if there are no variables to be parsed just do it like this: echo 'My dog has "fleas"'; // notice single quotes If there are variables to be parsed to it like this: echo "My dog has \"$var\""; Cheers! Rick "If I accept you as you are, I will make you worse; however, if I treat you as though you are what you are capable of becoming, I help you become that." - Johann Wolfgang von Goethe > From: "Shane" <shane@delaplaine.com> > Date: Fri, 24 May 2002 16:20:45 -0700 > 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 (#99181) next »