You'll often want to code blocks of text into your PHP ... and
there are a lot of ways of doing it - perhaps too many. Some of
them are excellent - the "here" document, and including text from a
file - but others such as the use of multiple echos are frankly
awful - they're hard to debug in the first place, they're wasteful
of time, and they're nasty to maintain. It's a trajedy that some
of the books which are published on PHP use this multiple echo
technique - for sure, it's easy to learn when you first come to
PHP but if you adopt it as your general style , you'll be lead up
a blind alley. The illustration alongside this paragraph is a
photograph from a book (I'm allowed a 'short extert for critical
review' under copyright law) showing how you should NOT do it. The
source code of this example, available via this
link, shows you some far better alternatives.|
This is http://www.wellho.net/demo/echovalley.php See source code here • More examples - same topic here Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY Phone: +44 (0) 1225 708 225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net |