Summary
This chapter demonstrated the strengths of PHP when it comes to variables and data types. The loosely typed behavior of PHP makes it easy to work with, and there is little reason to spend time on memory cleanups, as the engine handles these when the scripts terminate.
We discussed how variables are handled from creation, and we discussed how to manipulate data, how to test for values and types, and how to use the more advanced features of variable variables and functions.
We also showed examples of using the serialize() and unserialize() functions to format data so the data can be shared between calls or stored in a database. Finally, we showed some examples of how data can be shared between processes that run simultaneously.
Access provided by Autonomous University of Puebla. Download to read the full chapter text
Chapter PDF
Editor information
Rights and permissions
Copyright information
© 2005 Lee Babin, Nathan A. Good, Frank M. Kromann, Jon Stephens
About this chapter
Cite this chapter
(2005). Working with Variables. In: Babin, L., Good, N.A., Kromann, F.M., Stephens, J. (eds) PHP 5 Recipes. A-Press. https://doi.org/10.1007/978-1-4302-0070-3_10
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0070-3_10
Publisher Name: A-Press
Print ISBN: 978-1-59059-509-1
Online ISBN: 978-1-4302-0070-3
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books