Beginning php 5.3
This book is intended for anyone starting out with PHP programming. If you've previously worked in another programming language such as Java, Csharp, or Perl, you'll probably pick up the concepts in the earlier chapters quickly; however, the book assumes no prior experience of programming or of building Web applications. That said, because PHP is primarily a Web technology, it will help if you have at least some knowledge of other Web technologies, particularly HTML and CSS. Many Web applications make use of a database to store data, and this book contains three chapters on working with MySQL databases. Once again, if you're already familiar with databases in general -- and MySQL in particular -- you'll be able to fly through these chapters. However, even if you've never touched a database before in your life, you should still be able to pick up a working knowledge by reading through these chapters. What This Book Covers This book gives you a broad understanding of the PHP language and its associated technologies.
You explore a wide range of topics, including: installing a copy of the PHP engine on Ubuntu Linux, Windows, and Mac OS X;other ways you can install or use PHP; how to write a simple PHP script. basic PHP language concepts. variables, data types, operators, expressions, and constants. how to change the flow of your scripts by creating decisions and loops. if , else , and switch statements; the ternary operator; and the do , while , for , break , and continue statements. how to nest loops, and how to mix decisions and looping with blocks of HTML. PHP's handling of strings, or sequences of characters; how to create strings; how to retrieve characters from a string; and how to manipulate strings with functions such as strlen() , substr() , strstr() , strpos() , str-replace() , and printf() , to name but a few. arrays -- variables that can hold multiple values. You learn the difference between indexed and associative arrays, and find out how to c