--On Saturday, October 25, 2003 20:48 -0400 Anthony J Segelhorst <[EMAIL PROTECTED]> wrote:

How can add double qoutes around "SNMP Service" to the variable
$servicename?

I have tried $doubleqoutes_servicename = "$servicename";

This does not work though.

Any ideas?

Either of the following should work:


$doubleqoutes_servicename =  "\"$servicename\"";
$doubleqoutes_servicename =  '"'. $servicename .'"';

My preference is the latter, but only because I find it easier to read. (And that is partly because of BBEdit's coloring system: the latter colors less ambiguously.)

Daniel T. Staal

---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to