Variable Variables

PHOTO EMBED

Mon Jun 22 2020 13:13:18 GMT+0000 (UTC)

Saved by @Amna #php

<?php

  $var1 = 'nameOfVariable';

  $nameOfVariable = 'This is the value I want!';

  echo $$var1; 

?>
content_copyCOPY

https://css-tricks.com/snippets/php/variable-variables/