You are here: Re: Ereg « All PHP « IT news, forums, messages
Re: Ereg

Posted by Oli Filth on 11/23/05 17:12

Harry wrote:
> Hi!
>
> I'm trying to know if a substring or another string, using ereg.
>
> ereg ($substring, $string)
>
> My problem is that $substring contains characters like '[' and ']',
> which are use for identifying classes in regular expressions, so I
> obtain an error message every time I use it as in this example.
>
> How can I solve it? Is there any option to make ereg not evaluate '['
> and ']'. Or is there any other function that allows to compare two
> substrings, saying if one is substring o another?
>

strpos()

--
Oli

 

Navigation:

[Reply to this 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

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