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 } Quote Link to comment https://forums.phpfreaks.com/topic/246489-if-statement-help/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.