kensbeijing Posted February 21, 2009 Share Posted February 21, 2009 I can't figure out how to do this: $name1 = "John";$name2 = "Sam";$name3 = "Jack";$number = 1;//I need to do something like this to output $name1echo "$name".$number; Link to comment Share on other sites More sharing options...
kensbeijing Posted February 21, 2009 Author Share Posted February 21, 2009 I can't figure out how to do this:$name1 = "John";$name2 = "Sam";$name3 = "Jack";$number = 1;//I need to do something like this to output $name1echo "$name".$number; Actually I figured it outecho ${"name{$number}"}; sorry please could you lock this topic Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.