Re: heredoc usage [WAS: <OPTION]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 10:23 AM -0700 10/26/06, Paul Novitski wrote:
At 10/26/2006 08:24 AM, tedd wrote:
I think a <div> would work just as well -- <span> seems so old-world to me. :-)

By default, div is a block element and span is inline, so span seemed like the natural fit for a sentence fragment. I don't think there's anything old-world (!) about spans, Tedd, they're just tags. I use both in my markup with a clear conscience.

My bad -- spans just remind me of the old "How do we slip things in" days instead of figuring out a way to work around it. I realize that they are both tags, but as Stut reminded me, one is block and the other is line element.

However, if you used preg_match_all, I think you could do away with the spans all together by matching FIRSTNAME to your first name variable. That way your document would simply read:

       Hello FIRSTNAME

That's true, and in tighly-defined micro-contexts that might work just fine. For a robust general CMS, though, I want a completely unambiguous demarcation of replacable content. All-caps tags will work in some circumstances but certainly won't in others.

If you want "a completely unambiguous demarcation" then use xml with a defined schema. I don't think you can get any more defined than that, right?

Cheers,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux