Jump to content

Supertrooper

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Supertrooper's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. OK thanks guys.
  2. Hello, Ok, so I am passing something through via a web form and I want to check if the first 2 letters contain something so I have worked out you can do: if (substr($foobar, 0, 2) === 'ab') { echo "blah blah"; } What happens if I want to check if the first two letters are ab or ba? I thought I could do if (substr($foobar, 0, 2) === 'ab' or 'ba') { echo "blah blah"; } but this doesn't seem to work. Also, what if I want to check for all variants of CAPS for example, AB, ab, Ab, bA etc? Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.