RE: [PHP] Strings..

From: Date: Fri, 09 Mar 2001 16:16:16 +0000
Subject: RE: [PHP] Strings..
Groups: php.general 
Request: Send a blank email to php-general+get-43166@lists.php.net to get a copy of this message
Could parse_str() help? From http://php.net/manual/en/function.parse-str.php: void parse_str (string str [, array arr]) Parses str as if it were the query string passed via an URL and sets variables in the current scope. If the second parameter arr is present, variables are stored in this variable as an array elements instead. -----Original Message----- From: Ashwin Kutty [mailto:Ashwin.Kutty@Dal.Ca] Sent: Friday, March 09, 2001 9:04 AM To: php-general@lists.php.net Subject: [PHP] Strings.. Was wondering if someone could tell me how I could do this.. I need the dynamically generated number (<NUM>) from a string, where the string is:- http://blah.blah.com/blah/blah?blah.com/blah=something:%3Asessionid=<NUM>&db name=blah Now I tried explode and split, with the '&' being as the delimiter, but how do you dump the rest of the string.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#43166) next »