php article
Last month, I posted a link to a Basic CSS article I wrote for a designer newsletter. This month, I wrote a *really* basic Basic PHP article. So for those of you were are reading us here and still haven’t gotten a chance to play with PHP, feel free to check this out.
note, I know there are lots of ways to do PHP things, and maybe I didn’t use the best methods in my article, but these were the ways that I knew, and really just wanted to give the readers a taste of their very first PHP code.
June 4th, 2002 at 11:02 am
There’s a particular tack for explaining PHP that I’ve never seen taken, and someone really should: PHP for the non-programmer.
I would have done some very, very grisly acts to have gotten hold of such a beast about a year ago.
Some things to cover: what a function is. How it works. What the stuff inside the ( and ) is for, and how it’s used.
What a “concatenation operator” is, and how to use it properly.
Common errors. First things to check for when you get a parse error.
How to read the “this is how this command is set up” demonstration syntax on places like PHP.net.
Lastly — an overview of common bits seen in PHP: print, echo, for…each, break, continue, do…while, file, count, explode, implode, substr, strstr, substr_replace, array, etc.
…and if this gives you an idea for another article, go right ahead!