Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- convert string into variable in php
April 22, 2009, 10:46 am
rate this thread
does PHP has a function to convert a string into variable. Im not
sure how to express it correctly, but what I want is this:
$one = "Hello mate!";
$string = "$one";
When I echo $string, currently it displays '$one'. but i want to
display 'Hello mate!'. Is it possible to do with php? if yes, how it
is done? what kind of function or code i need to write to do what i
want to do?
Thanks for your help
- The Natural Philosopher
April 22, 2009, 10:55 am