string checking

  • tommya
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Mar 17, 2004
  • Posts: 221
  • Loc: United Kingdom
  • Status: Offline

Post July 1st, 2004, 7:07 am

I have included the following line in one of my pages

Code: [ Select ]
$stringcheck = ereg("(karenl)",$sesslogin);


it checks for the presence of the pattern inside the variable
is there any way to amend this to search for multiple patterns??
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 1st, 2004, 7:07 am

  • eCommando
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jan 27, 2004
  • Posts: 164
  • Loc: California, USA
  • Status: Offline

Post July 2nd, 2004, 10:34 am

Can you use Regex expressions?

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 83 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.