PDA

View Full Version : PHP equivalent of Oracle command INSTR


sarah
11-15-2002, 11:22 AM
Hi ALL!

Yes, I know its been awhile, been sooo busy, anyways jus a quickie:

I am still teaching myself PHP and I'm a bit stuck, I wanted to know if there was an equivalent command in PHP for INSTR which is used in Oracle.

INSTR - gets a character(s) in a string

i.e:
INSTR('abcd','a')=a

Is there a PHP way of doing this?

Thanks
Luv Sarah

sarah
11-15-2002, 12:02 PM
Hi guys!

Its ok I've found it
instr equiv is strchr

examples are available at php.net