If you want to get started with PHP, this book is essential. Author David Sklar (PHP Cookbook) guides you through aspects of the language you need to build dynamic server-side websites. By exploring features of PHP 5.x and the exciting enhancements in the latest release, PHP 7, youll learn how to wo
Learning PHP: A Gentle Introduction to the Web's Most Popular Language
✍ Scribed by David Sklar
- Publisher
- O'Reilly Media
- Year
- 2016
- Tongue
- English
- Leaves
- 415
- Category
- Library
No coin nor oath required. For personal study only.
✦ Synopsis
If you want to get started with PHP, this book is essential. Author David Sklar (PHP Cookbook) guides you through aspects of the language you need to build dynamic server-side websites. By exploring features of PHP 5.x and the exciting enhancements in the latest release, PHP 7, you’ll learn how to work with web servers, browsers, databases, and web services. End-of-chapter exercises help you make the lessons stick.
Whether you’re a hobbyist looking to build dynamic websites, a frontend developer ready to add server-side programs, or an experienced programmer who wants to get up to speed with this language, this gentle introduction also covers aspects of modern PHP, such as internationalization, using PHP from the command line, and package management.
- Learn how PHP interacts with browsers and servers
- Understand data types, variables, logic, looping, and other language basics
- Explore how to use arrays, functions, and objects
- Build and validate web forms
- Work with databases and session management
- Access APIs to interact with web services and other websites
- Jumpstart your project with popular PHP web application frameworks
✦ Table of Contents
Cover
Copyright
Table of Contents
Preface
Who This Book Is For
Contents of This Book
What’s Not in This Book
Other Resources
Conventions Used in This Book
Programming Conventions
Typographical Conventions
Using Code Examples
Safari® Books Online
Comments and Questions
Acknowledgments
Chapter 1. Orientation and First Steps
PHP’s Place in the Web World
What’s So Great About PHP?
PHP Is Free (as in Money)
PHP Is Free (as in Speech)
PHP Is Cross-Platform
PHP Is Widely Used
PHP Hides Its Complexity
PHP Is Built for Web Programming
PHP in Action
Basic Rules of PHP Programs
Start and End Tags
Whitespace and Case-Sensitivity
Comments
Chapter Summary
Chapter 2. Data: Working with Text and Numbers
Text
Defining Text Strings
Manipulating Text
Numbers
Using Different Kinds of Numbers
Arithmetic Operators
Variables
Operating on Variables
Putting Variables Inside Strings
Chapter Summary
Exercises
Chapter 3. Logic: Making Decisions and Repeating Yourself
Understanding true and false
Making Decisions
Building Complicated Decisions
Repeating Yourself
Chapter Summary
Exercises
Chapter 4. Groups of Data: Working with Arrays
Array Basics
Creating an Array
Choosing a Good Array Name
Creating a Numeric Array
Finding the Size of an Array
Looping Through Arrays
Modifying Arrays
Sorting Arrays
Using Multidimensional Arrays
Chapter Summary
Exercises
Chapter 5. Groups of Logic: Functions and Files
Declaring and Calling Functions
Passing Arguments to Functions
Returning Values from Functions
Understanding Variable Scope
Enforcing Rules on Arguments and Return Values
Running Code in Another File
Chapter Summary
Exercises
Chapter 6. Data and Logic Together: Working with Objects
Object Basics
Constructors
Indicating a Problem with Exceptions
Extending an Object
Property and Method Visibility
Namespaces
Chapter Summary
Exercises
Chapter 7. Exchanging Information with Users: Making Web Forms
Useful Server Variables
Accessing Form Parameters
Form Processing with Functions
Validating Data
Required Elements
Numeric or String Elements
Number Ranges
Email Addresses
📜 SIMILAR VOLUMES
If you want to get started with PHP, this book is essential. Author David Sklar (PHP Cookbook) guides you through aspects of the language you need to build dynamic server-side websites. By exploring features of PHP 5.x and the exciting enhancements in the latest release, PHP 7, you'll learn how to w
If you want to get started with PHP, this book is essential. Author David Sklar (PHP Cookbook) guides you through aspects of the language you need to build dynamic server-side websites. By exploring features of PHP 5.x and the exciting enhancements in the latest release, PHP 7, you’ll learn how to w
O'Reilly Media, 2016. — 414 p. — ISBN: 1491933577, 9781491933572<div class="bb-sep"></div>If you want to get started with PHP, this book is essential. Author David Sklar (PHP Cookbook) guides you through aspects of the language you need to build dynamic server-side websites. By exploring features of
O'Reilly Media, 2016. — 416 p. — ISBN: 978-1-4919-3357-2.<br/> <br/><strong>Код примеров к книге выложен <a class="object-link fpm" data-file-id="1955705" href="/file/1955705/">здесь</a>.</strong><div class="bb-sep"></div><strong>If you want to get started with PHP, this book is essential. Author Da