| |||||||||||
| |||||||||||
Case Sensitive?
PHP variable names are case sensitive, but the names of functions are case insensitive. Why is this?
PHP is a language that's designed to let you write a web page template into which you can insert additional tags to call up the functionality of PHP, and it originated in the days before xhtml when tags were case insensitive. So it's natural for those additional tags to be case insensitive too. However, following on from other Open Source / Linux / Unix projects, for the most part PHP is case sensitive - a sensible approach as it avoids the loss by folding of 26 ASCII characters in your coding scheme. Also a sensible approach as those of us who use PHP and Perl and Python and other languages appreciate a certain amount of consistency. It's very easy in PHP to write a piece of code that looks like a "dog's dinner" with a mixture of tags, code, SQL, English all in one file. Following a presentation last week on good PHP practice that I attended, I've written an extra example for our own courses and placed it in our solutions centre - you can see it on this site and learn more about it on our PHP Programming course too. As an overview ..... split your PHP application into 4 files:
You can run the sample in our PHP demo directory (written 2004-10-19 08:16:20) Associated topics are indexed under H101 - Introduction to PHP
Some other Articles
What makes a professional photographer?Variable Scope Five red flags Special change Case Sensitive? Hard work, Hard sell On line every 24 hours Rude old people When will Perl 6 be available Getting the right level of trainer 1636 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33 at 50 posts per pageThis is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price. Link to Ezine home page (for reading). Link to Blogging home page (to add comments). |
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho | |||||||||||