It’s evil is what it is.
That will take the value that’s in $textVarName
and use that as a variable name. For example:
$foo = 'hello';
$hello = 'The Output';
echo $$foo; // displays "The Output"
More Related Contents:
- What’s an actual use of variable variables?
- Syntax error unexpected '<' [duplicate]
- Week of the day for current date in php [closed]
- What is more efficient for a PHP variable, $timelimit 10*60; or $limit 600;? [closed]
- UTF-8 all the way through
- Curly braces in string in PHP
- Running a Python script from PHP
- Sorting a php array of arrays by custom order
- How to get multiple parameters with same name from a URL in PHP
- How do I find the mime-type of a file with php?
- Is there a PHP library for email address validation? [closed]
- What does “1” mean at the end of a php print_r statement?
- Pretty URLs with .htaccess
- php glob – scan in subfolders for a file
- How do I see which checkbox is checked?
- How can I easily switch between PHP versions on Mac OSX?
- Rounding to nearest fraction (half, quarter, etc.)
- How do I pass data between pages in PHP?
- How to populate HTML dropdown list with values from database
- Get the hierarchy of a directory with PHP
- convert date string to mysql datetime field
- HTML,PHP – Escape ” symbols while echoing
- How to make HTTP requests in PHP and not wait on the response
- implicit class variable declaration in php?
- facebook connect- $user_id = $facebook->getUser(); always returning 0 [duplicate]
- trying to send mail using swift mailer, gmail smtp, php
- Laravel Eloquent: How to get only certain columns from joined tables
- check if url exists in php [duplicate]
- How to use Laravel Passport with Password Grant Tokens?
- CORS: PHP: Response to preflight request doesn’t pass. Am allowing origin