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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple string match from an array

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
I have an array of strings, I want to grab everyone of them which starts with the letter R, or Possibly with the letter R followed by a little information, I haven't decided yet.

This is a simple task with regex's and a simple foreach, but I seem to remember PHP having some built in tool that may be more appropriate (read faster), some kind of get_value(where value like R) type thing, maybe I'm just dreaming... but if not could someone tell me what I'm thinking about?

-Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top