Thread: Changable value
View Single Post
Old 10-08-2010, 09:53 PM   #2 (permalink)
Village Idiot
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by CΛSTΞX View Post
hey I've little question;

PHP Code:
$get $_REQUEST['NUMBER'];
$num."".$get "blbla";

echo 
$num3
// should echo blbla

I have to echo the changable value name. But its not correct. How do you think I can get it in correct way ?
What you are doing is impossible. You can not name variables like they are strings. Your closest match would be to use an array.

PHP Code:
$get $_REQUEST['NUMBER'];
$num[$get] = "blbla";

echo 
$num[$get]; 
__________________

Village Idiot is offline  
Reply With Quote