Jump to content

Turning "name0" into $name0


Diegar

Recommended Posts

Use the eval function:

$string = "name0";eval("\$$string = \"Whatevertext\";");echo $name0; //Will echo "Whatevertext"

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...