On 30.01.2008 17:46, Richard Quadling wrote:
> As we may be missing a trick, how do you create strings which have $
> and ' and " in them?

$string = 'it\'s not that hard to add a $slash';

or

$string = <<<END
since when do we need a \$new 'language construct' to save one keystroke?
END;

or even

$string = "it's the \$third way to do the same \"thing\", but you want to add a 
4th one";

-- 
Wbr, 
Antony Dovgal

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to