cleary1981 Posted September 11, 2008 Share Posted September 11, 2008 Hi, I have been passing int variables via a url and reading them as follows $myID = (int) $_GET['id']; my problem is I need to read a string. What do I use instead of int? Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted September 11, 2008 Share Posted September 11, 2008 Using the (string) cast. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted September 11, 2008 Share Posted September 11, 2008 There's no point in casting a GET variable as a string. If you don't do anything with it, it'll be treated as a string anyway. Quote Link to comment 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.