Skip to main content

Arrays

  • Chapter
  • First Online:
PHP 7 Zend Certification Study Guide
  • 986 Accesses

Abstract

In this chapter, we're going to be looking at PHP arrays. PHP arrays are implemented as an ordered map that associates values to keys. There are three types of array in PHP: indexed, associative, and multidimensional.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://php.net/manual/en/ref.array.php

  2. 2.

    https://php.net/manual/en/function.implode.php

  3. 3.

    https://php.net/manual/en/function.preg-split.php

  4. 4.

    https://php.net/manual/en/function.str-split.php

  5. 5.

    https://secure.php.net/manual/en/function.array-shift.php

  6. 6.

    https://secure.php.net/manual/en/function.array-unshift.php

  7. 7.

    https://secure.php.net/manual/en/function.array-pop.php

  8. 8.

    https://secure.php.net/manual/en/function.array-push.php

  9. 9.

    https://php.net/manual/en/function.array-udiff.php

  10. 10.

    https://php.net/manual/en/function.array-diff.php

  11. 11.

    https://php.net/manual/en/function.array-udiff.php

  12. 12.

    https://php.net/manual/en/function.array-udiff-assoc.php

  13. 13.

    https://php.net/manual/en/function.array-diff-uassoc.php

  14. 14.

    https://php.net/manual/en/function.array-chunk.php

  15. 15.

    https://php.net/manual/en/function.array-slice.php

  16. 16.

    https://en.wikipedia.org/wiki/Empty_product

  17. 17.

    https://secure.php.net/manual/en/function.reset.php

  18. 18.

    https://secure.php.net/manual/en/function.next.php

  19. 19.

    https://php.net/manual/en/function.asort.php

  20. 20.

    http://php.net/manual/en/class.arrayobject.php

  21. 21.

    https://secure.php.net/manual/en/class.arrayobject.php

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Andrew Beak

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Beak, A. (2017). Arrays. In: PHP 7 Zend Certification Study Guide. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3246-0_4

Download citation

Publish with us

Policies and ethics