Abstract
Variables are used to store data temporarily in memory. Variables only exist as long as the PHP script is running. They are identified with a dollar sign followed by a name. The name of a variable can begin with a letter (a-z or A-Z) or an underscore. Any of the following characters can be a number, a letter, or any ASCII character from 127 to 255 (0x7f – 0xff). There is no restriction on the number of characters in the name. Variable names are case sensitive so $var, $Var, and $VAR will be three different variables.
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
© 2016 Frank M. Kromann
About this chapter
Cite this chapter
Kromann, F.M. (2016). Variables. In: PHP and MySQL Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0605-8_10
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0605-8_10
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0606-5
Online ISBN: 978-1-4842-0605-8
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)