Reply to Re: String 'starts with' function

Your name:

Reply:


Posted by Marcin Dobrucki on 03/09/06 12:46

Paul Morrison wrote:

> I have looked at the PHP string functions and I cant see any function to
> check to see whether a string starts with a certain letter or letters. Is
> there any way of doing this with the built in functions?

preg_match("/^[a-z]/",$string); // strings starting with a,b,c...,z

or whatever you want the string to start with.

/Marcin

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация