Jump to content

Simple question


448191

Recommended Posts

I think it does:

[quote=php.net]Another way to delimit strings is by using heredoc syntax ("<<<"). [b]One should provide an identifier[/b] after <<<, then the string, and then the same identifier to close the quotation.

The closing identifier must begin in the first column of the line. [b]Also, the identifier used must follow the same naming rules as any other label in PHP: it must contain only alphanumeric characters and underscores, and must start with a non-digit character or underscore. [/b][/quote]
Link to comment
https://forums.phpfreaks.com/topic/17395-simple-question/#findComment-74003
Share on other sites

Sort of. It behaves identically to double quotes(ie expands variables), but you don't actually use double double quotes, so you can include double quotes in the string without having to escape them.

To bad there isn't an equivalent that mimics single quotes, since that's what I'd prefer. (or is there?  ::))
Link to comment
https://forums.phpfreaks.com/topic/17395-simple-question/#findComment-74010
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.