Parsing Variables

From: Date: Thu, 31 Jul 2003 02:22:34 +0000
Subject: Parsing Variables
Groups: php.general 
Request: Send a blank email to php-general+get-157637@lists.php.net to get a copy of this message
I would like to create a script that reads a file name that follows a specific format and have it parsed into 2 variables. The format is as follows: cli_info-ACCOUNT-USERNAME.dat The two variables that I would like to get out of this are the ACCOUNT and USERNAME. The rest of the information can be discarded. I can get the entire filename into a variable, but I am not sure how to parse it properly. Any assistance would be appreciated. Thanks, Jason

« previous php.general (#157637) next »