Heredoc making me feel dumb

    Date: 06/27/07 (PHP Community)    Keywords: no keywords

    The offending code:


    $checkbox_markup = <<

    Access







    HEREDOC;


    When I take it out, the script is fine. When it's in, I get an "unexpected $end" error for the last line of the file.

    The HEREDOC; bit isn't indented, and I don't know what else could be going wrong here. Any ideas? Thanks!

    Source: http://community.livejournal.com/php/573497.html

« GD Question || Appleseed Release Version... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home