string questions

From: Date: Fri, 02 Aug 2002 16:35:30 +0000
Subject: string questions
Groups: php.general 
Request: Send a blank email to php-general+get-110903@lists.php.net to get a copy of this message
I know there has to be an easy way to do this, but I just can't find the answer. I need to strip out the first part of a text string. I've figured out out to strip out the last part of a string using the following: $address = (4455 N. 45th St.); $test = strstr($address, " "); echo $test; The variable $test returns N. 45th St. without the 4455. Is there a way to reverse this so I can just return 4455? Thanks, -Elkan

« previous php.general (#110903) next »