-
Senior Member
array vs. string question
Hi I have a parameter to a function that can either be an array or it can be a string. How do I write an if statement that will do 1 thing if its an array and another if its a string? And yes it has to be dual usage under the same parameter. I use a ild card * to type the parameter so it can be either one. Please help I'm stuck!
--calmchess
-
Senior Member
I just found the solution typeof() thanks for taking the time to read this
--calmchess
-
Senior Member
Originally Posted by calmchess
thanks for taking the time to read this
You're welcome.
p s why not two functions?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|