RE: [PHP] checking to see if part of a variable exists?

2001-05-21 Thread Jon Haworth
http://www.php.net/manual/en/function.strstr.php if (strstr ("i like beer", "beer")) { // it's in there } else { // it's not } -Original Message- From: Sandeep Hundal [mailto:[EMAIL PROTECTED]] Sent: 21 May 2001 11:39 To: Php (E-mail) Subject: [PHP] checking to see if part of a varia

Re: [PHP] checking to see if part of a variable exists?

2001-05-21 Thread James Holloway
Hi Sandeep, preg_match(); ereg(); eregi(); Will all help you. James. "Sandeep Hundal" <[EMAIL PROTECTED]> wrote in message A0A5617A0A05D5118EBD00508B8B953B5EA932@PROF-X">news:A0A5617A0A05D5118EBD00508B8B953B5EA932@PROF-X... > hi all! > > i need to see if a $variable has a piece of text inclu