Variable%20Variables%20in%20PHP - PowerPoint PPT Presentation

About This Presentation
Title:

Variable%20Variables%20in%20PHP

Description:

... dollar sign, so a variable variable is a variable with two dollar sign notations: ... The innermost variable is resolved first, returning its value as the ... – PowerPoint PPT presentation

Number of Views:17
Avg rating:3.0/5.0
Slides: 5
Provided by: ericse5
Category:

less

Transcript and Presenter's Notes

Title: Variable%20Variables%20in%20PHP


1
Variable Variables in PHP
2
What is a Variable Variable?
  • Variables in PHP are denoted with the dollar
    sign, so a variable variable is a variable with
    two dollar sign notations
  • Ex count

3
How do they work?
  • The innermost variable is resolved first,
    returning its value as the name of the outermost
    variable.
  • Ex name Eric
  • Eric Seufert
  • echo name would print Seufert

4
When are they useful?
  • Dynamic forms that allow for different input
    based on some initial decision
Write a Comment
User Comments (0)
About PowerShow.com