mid and left functions in php?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
noguru
Forum Commoner
Posts: 61
Joined: Thu Jun 06, 2002 4:03 am
Location: Just north of the City Of Gold, Land of Milk and Honey

mid and left functions in php?

Post 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
will
Forum Contributor
Posts: 120
Joined: Fri Jun 21, 2002 9:38 am
Location: Memphis, TN

Post by will »

Post Reply