𝔖 Scriptorium
✦   LIBER   ✦

📁

PHP by Example: A Practical Guide to Creating Web Applications with PHP

✍ Scribed by Alex Vasilev


Publisher
Apress
Year
2024
Tongue
English
Leaves
432
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Learn to create web applications in PHP with minimal previous experience. This book is a practical guide to using PHP for web development.

Loaded with examples and step-by-step instructions, each chapter is dedicated to a specific area or function. You’ll first review the main principles of PHP and what is needed to program and develop in it. You’ll then study variables, data types, control statements, arrays, and functions, all critical for creating efficient PHP programs.

The book then moves on to object-oriented programming (OOP) and how to implement those principles in PHP, as well as inheritance, interfaces, testing, error handling, and exceptions. By the end of PHP by Example, you will have the knowledge and confidence to implement PHP for your web projects both large and small.

What You’ll Learn
Understand PHP from the ground up
Create scripts and implement them in real-world projects
Work with a broad toolkit of ready-made exercises and solutions
Investigate the main constructions of the PHP

✦ Table of Contents


Table of Contents
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: The First Program
The Program’s Code
The Interpreter Regime
The Server Regime
Summary
Chapter 2: Variables and  Data Types
Introduction to Variables
Basic Data Types
The Arithmetic Operations
The Comparison Operations
The Logical Operations
The Bitwise Operations
The Operations with Strings
Assigning Values
The Ternary Operator
Summary
Chapter 3: The Control Statements
The if Conditional Statement
The while Loop Statement
The do-while Loop Statement
The for Loop Statement
The switch Selection Statement
The goto Instruction
The match Selection Statement
Summary
Chapter 4: Arrays
Getting Familiar with Arrays
A Loop over an Array
Multidimensional Arrays
Array Assignments
Concatenating Arrays
Comparing Arrays
Functions for Handling Arrays
Summary
Chapter 5: Functions
Creating Functions
The Function Result
The Type of Arguments and Result
The Argument Passing Mechanism
The Argument Value by Default
An Arbitrary Number of Arguments
Recursion
The eval() Function
Anonymous Functions
Named Arguments
Summary
Chapter 6: Useful Tricks and Operations
References
Constants
Global Variables
Static Variables
Multiline Strings
Using Files
Including a File in the Program
Summary
Chapter 7: Classes and Objects
The OOP Principles
Creating Classes and Objects
The Methods
The Constructor and the Destructor
Static Fields and Methods
Copying Objects
Private Fields and Methods
Special Methods
Defining Fields in the Constructor
Summary
Chapter 8: Inheritance
Creating a Child Class
Overriding Methods
Constructors and Inheritance
Inheritance and Private Members
Protected Members of a Class
Virtual Methods
A Function as a Field Value
Multilevel Inheritance
Summary
Chapter 9: Advanced OOP Mechanisms
Abstract Classes
Interfaces
Interface Inheritance
Class Inheritance and Interface Implementation
Traits
Object Type Control
A Namespace
Anonymous Classes
Summary
Chapter 10: Error Handling
Exception Handling Principles
Exception Classes
Throwing Exceptions
The Custom Exceptions
Handling Exceptions of Different Classes
Nested try-catch Constructions and the finally Block
Rethrowing an Exception
The Functions for Handling Errors
Summary
Chapter 11: Generators and Iterators
Getting Familiar with Generators
A Generator Function with Arguments
An Array Based on a Generator
The Generator Result
Using Generators
Passing a Value to a Generator
Iterators
Summary
Chapter 12: Using PHP
A Script in an HTML Document
Handling the Request Parameters
Using Buttons
Using Several Buttons
Using Lists and Checkboxes
A Slider and Radio Buttons
Summary
Chapter 13: Afterword: What Was and What Will Be
Index


📜 SIMILAR VOLUMES


PHP by Example: A Practical Guide to Cre
✍ Alex Vasilev 📂 Library 📅 2024 🏛 Apress Publishers 🌐 English

Learn to create web applications in PHP with minimal previous experience. This book is a practical guide to using PHP for web development.Loaded with examples and step-by-step instructions, each chapter is dedicated to a specific area or function. You'll first review the main principles of PHP and w

Advanced PHP Programming : A Practical G
✍ George Schlossnagle 📂 Library 📅 2004 🏛 Sams 🌐 English

Over the past three years PHP has evolved from being a niche language used to add dynamic functionality to small sites to a powerful tool making strong inroads into large-scale, business-critical Web systems.   The rapid maturation of PHP has created a skeptical population of users from more tradi

Advanced PHP programming: a practical gu
✍ Schlossnagle, George 📂 Library 📅 2004;2005 🏛 Sams Publishing 🌐 English

Over the past three years PHP has evolved from being a niche language used to add dynamic functionality to small sites to a powerful tool making strong inroads into large-scale, business-critical Web systems. The rapid maturation of PHP has created a skeptical population of users from more tradition

Advanced Php Programming: A Practical Gu
✍ Gorg Schlossnagl 📂 Library 📅 2004 🏛 Sams,2004 🌐 English

Over the past three years PHP has evolved from being a niche language used to add dynamic functionality to small sites to a powerful tool making strong inroads into large-scale, business-critical Web systems.The rapid maturation of PHP has created a skeptical population of users from more traditiona

Practical Web 2.0 Applications with PHP
✍ Quentin Zervaas 📂 Library 📅 2007 🌐 English

There are many technologies that go into creating a successful modern web application, but few books that cover how to use them all together effectively. Practical PHP Web 2.0 Applications does just that - it marries together PHP and MySQL, XHTML, CSS, and JavaScript/Ajax, covering how to create a c

Practical Web 2.0 Applications with PHP
✍ Quentin Zervaas 📂 Library 📅 2008 🏛 Apress; Distributed by Springer-Verlag New York 🌐 English

Not good. Only a third of the way through chapter 2, yes, chapter TWO and I'm seriously considering retiring this book. Things had not been working as they ought to (as he said they would) until I got my hands DIRTY. Dirty as in "retro-fitting" my server to use an OLD version of the Zend framewor