Hi,
Basically I want to find out if the REQUESTED_URI contains any variables, so I want to see if it has "?" in it.
I got it working w/ foreach() method, but it a bit to slow for some reason, and I dont really need to cycle thwough full string... is there any easier method?
Thnx!
easy way to chek if string contains "?" HOW?
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
I think you can also check against $REQUEST['QUERY_STRING'], but it might not be reliable. For sure, strpos() will tell you if there is a '?' in the string, as long as you tell it the right string to check.