Home Forums PHP Variable Variables in PHP

This topic contains 0 replies, has 1 voice, and was last updated by  Usman Haider 3 years, 2 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #671

    Usman Haider
    Keymaster

    An interesting information about PHP variables is that they can be called using the variable values. That’s why these kind of variables are called variable variables. These can be used in the following way:

    These kind of variables are used where we want to print the value by calling the variable with same name, but returns different values each time because the actual name of variable is dynamic.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.