# Double quotes for NOWDOCS

- Thread: https://externals.io/message/35506
- Original archive: https://news-web.php.net/php.internals/35506
- Started by Lars Strojny on 2008-02-14T22:23:13+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #35506 — Lars Strojny — 2008-02-14T22:23:13+00:00

URL: https://externals.io/message/35506#35506

Hi,

I know I am a bit late, but I've played around with NOWDOCS this
evening, and one issue thing came up instantly: I asked myself why the
heck are single quotes allowed but not double quotes? This seems to me
counter intuitive to the way we handle strings in PHP. I think it would
be perfectly alright to allow both, single quotes and double quotes.

My proposed patch:
http://lars.schokokeks.org/php/nowdocs_double_quotes-1.diff

cu, Lars

---

## #35533 — Stanislav Malyshev — 2008-02-15T17:24:13+00:00

URL: https://externals.io/message/35506#35533 · In reply to: #35506

> I know I am a bit late, but I've played around with NOWDOCS this
> evening, and one issue thing came up instantly: I asked myself why the
> heck are single quotes allowed but not double quotes? This seems to me

You mean around end token? Because there's no need in them. We already 
have double quotes semantics with old heredocs.

-- 
Stanislav Malyshev, Zend Software Architect
stas@zend.com   http://www.zend.com/
(408)253-8829   MSN: stas@zend.com
