Dynamically Setting and Accessing Variables : Print « Development « PHP
- PHP
- Development
- Print
Dynamically Setting and Accessing Variables
<html>
<head>
<title>Dynamically setting and accessing variables</title>
</head>
<body>
<?php
$holder = "user";
$$holder = "holder";
print "$user<br>";
print $$holder;
print "<br>";
print "${$holder}<br>";
print "${'user'}<br>";
?>
</body>
</html>
Related examples in the same category