watagal Posted May 7, 2006 Share Posted May 7, 2006 GreetingsHow do I test if a passed variable is an object of a string?Thanks Link to comment Share on other sites More sharing options...
Jack McKalling Posted May 8, 2006 Share Posted May 8, 2006 While you are comparing it with another var that does is that type, and you if you want them both be compared but also the same type, then compare with three = signs, instead of two.4 == "4" returns true,4 === "4" returns falseIf you want just the type of a var, you can use gettype() to see what type it is Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now