Beginner PHP Code Examples

At last month’s Burlington, VT PHP Users Group meeting I presented a session on beginner PHP. The code examples can be downloaded (or forked) from GitHub. The talk was geared towards complete beginners and covered the basic structure of a PHP script, variables, comments, data types, arrays (enumerative, associative and multi-dimensional), operators, conditionals, iterative constructs, functions, scope, web forms and database access. I’ve licensed the code examples under the New BSD license in case anyone wants to use and/or modify them for their own beginner PHP talk.