Page 1 of 1

mid and left functions in php?

Posted: Wed Jul 17, 2002 3:52 am
by noguru
Hi

What is the php functions for retrieving for instance the first 4 characters of a string, or the 5th and 6th, etc. In ASP you use "mid" and "left" to obtain this, but I can't find these in the php manual. Also what about a function to check if a certain character exists in a string (in ASP it's "instr").

Thanks

Posted: Wed Jul 17, 2002 4:11 am
by will