Book description
Gain an in-depth understanding of PHP 7 arrays. After a quick overview of PHP 7, each chapter concentrates on single, multi-dimensional, associative, and object arrays. PHP Arrays is a first of its kind book using PHP 7 that demonstrates inserting, appending, updating, and deleting array data.
This book also covers validation methods to insure that the data provided by a user is good before the data is entered into an array. You’ll see how PHP 7 try/catch modules are used to capture exceptions and errors that may be caused by invalid data.
The code examples demonstrate common real-world scenarios. Moreover, examples of every PHP 7 array function (over 75) are demonstrated. The appendix provides a two-dimensional array case study on the logical design of a checkers game.
PHP Arrays answers the following questions:
- Why do we need arrays? When do we need to use arrays?
- Are arrays efficient? Can arrays reduce coding time? When do you use multi-dimensional and associative arrays?
- What is an object array?
- Handle array data from an HTML form
- Manage array data from a text file
- Deal with array data from a MySQL database
Table of contents
- Cover
- Frontmatter
- 1. PHP 7 Basics
- 2. Simple Arrays
- 3. Multidimensional Arrays
- 4. Associative and Object Arrays
- 5. PHP FunctionsâChanging, Splitting, Slicing, and Sorting Arrays
- 6. PHP FunctionsâComparing and Merging Arrays
- 7. PHP FunctionsâSearching, Traversing, and Displaying Arrays
- Backmatter
Product information
- Title: PHP Arrays: Single, Multi-dimensional, Associative and Object Arrays in PHP 7
- Author(s):
- Release date: December 2016
- Publisher(s): Apress
- ISBN: 9781484225561
You might also like
book
PHP 7 Programming Blueprints
Learn how to exploit the impressive power of PHP 7 with this collection of practical project …
book
PHP 8 Revealed: Use Attributes, the JIT Compiler, Union Types, and More for Web Development
Discover the new and updated features of PHP 8, such as the JIT compiler, union types, …
book
Typed PHP: Stronger Types For Cleaner Code
Discover how stronger types mean cleaner, more efficient, and optimized PHP applications. This unique book looks …
book
Modernizing Legacy Applications in PHP
Get your code under control in a series of small, specific steps About This Book Learn …