Abstract
So far, we have covered several data types, including the string, integer, and float. You’ve learned how to use strings, integers, and arrays. Each of these types has their own benefits and limitations. An integer cannot use the letter “s” as a value, and a string can contain an integer of “1.” With arrays, you learned about the idea of a compound data type. This data type allows for combining and intermixing of different elements. An array can contain both letters and numbers, contain specific key-pair values (associative array), or just contain an organized set of data. The end result is that values of more than one type can be stored together in a single variable.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2023 Gunnard Engebreth, Satej Kumar Sahu
About this chapter
Cite this chapter
Engebreth, G., Sahu, S.K. (2023). Objects. In: PHP 8 Basics. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-8082-9_8
Download citation
DOI: https://doi.org/10.1007/978-1-4842-8082-9_8
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-8081-2
Online ISBN: 978-1-4842-8082-9
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)