Skip to main content
  • Book
  • © 2017

PHP Arrays

Single, Multi-dimensional, Associative and Object Arrays in PHP 7

Apress

Authors:

  • A unique PHP 7 arrays book to market

  • Details when arrays should be used, and how they can improve efficiency

  • 11k Accesses

Buy it now

Buying options

eBook USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 27.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (7 chapters)

  1. Front Matter

    Pages i-xv
  2. PHP 7 Basics

    • Steve Prettyman
    Pages 1-25
  3. Simple Arrays

    • Steve Prettyman
    Pages 27-40
  4. Multidimensional Arrays

    • Steve Prettyman
    Pages 41-56
  5. Associative and Object Arrays

    • Steve Prettyman
    Pages 57-74
  6. Back Matter

    Pages 143-161

About this book

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? 




What You'll Learn


  • Handle array data from an HTML form
  • Manage array data from a text file
  • Deal with array data from a MySQL database





Who This Book Is For


Experienced PHP programmers or web developers using PHP.




 




Authors and Affiliations

  • Key West, USA

    Steve Prettyman

About the author

Steve Prettyman is a college lecturer/instructor in web development/programming, specializing in PHP. He is also an experienced web developer and author.


Bibliographic Information

Buy it now

Buying options

eBook USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 27.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access