Hi,
I have a script that's collecting variables, and I have an associative array that's replacing those I've collected.
One variable will always be numerical, but it'll pop up in different places - I don't think the associative array will cover it.
What I want to do is replace the numerical value with a different variable (the script already knows what this will be). The numerical variable is always an article id. When the script encounters it, I want it to replace it with the article title (grabbed elsewhere in the script).
Can anybody tell me how to test as to whether a variable is numerical (only - if a number is within a variable, I'm not worried... I only want a true result if it's "only" numerical) in php?
Thanks!