Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Dynamically Setting and Accessing Variables

Tue Oct 28, 2008 12:32 am

Code:
<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>




Post a reply
  Related Posts  to : Dynamically Setting and Accessing Variables
 Accessing Global Variables with the global Statement     -  
 Local variables vs Instance variables     -  
 php Accessing a Property from Within a Method     -  
 Setting a Cookie Value in php     -  
 update an xml file with jaxb and accessing to its elements     -  
 setting div background position     -  
 Accessing files in remote server (unix/windows) using JSP     -  
 Setting maximum height of paragraph -P tag     -  
 (3.0.4) Skymiles Setting Fixed WIDTH     -  
 Toggle the Multi Monitor Setting in Windows XP     -  

Topic Tags

PHP Variables