MDanz Posted September 5, 2011 Share Posted September 5, 2011 this if statement isn't working.. $newid is an integer, which is the name of a variable of an array e.g. $53. The below code should check if the array exist. it should echo yes.. instead it is blank. if(isset(${"$newid"})) { echo "yes"; //code } Link to comment https://forums.phpfreaks.com/topic/246489-if-statement-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.