Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get 3 characters after the "."

Status
Not open for further replies.

Spidy6123

Technical User
May 30, 2002
227
CA
Hi everyone..

Just looking for a little help with regards to retrieving a character string.

I'm trying to get the 3 characters after a "." within a string..

just like a MID() function in VBA.. just not sure how to look for the period and then pick up the 3 chars.

any help or advice is appreciated.

Thanks
-Peter
 
think I got it..

$fileext2 = substr(strrchr($row['banner_image'], "-"), 1);

thanks anyways
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top