in reply to Re: Why does $sql = EOSQL; require EOSQL to be in column 0?
in thread Why does $sql = <<EOSQL; require EOSQL to be in column 0?
This technique breaks of course if you change the indenting on the heredoc itself without changing the indent on the '<<' line. So you will need to decide if the readability is sufficient advantage to make up for the maintenance issue.$sql = <<" EOSQL"; ... EOSQL
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Why does $sql = EOSQL; require EOSQL to be in column 0?
by chipmunk (Parson) on Feb 23, 2001 at 08:33 UTC |