Article View: pl.comp.lang.php
Article #220204Re: Jakiej funkcji używacie do sprawdzenia zawierania się jednego ze słów tablicy w stringu
From: NEO.pl / PHPEncoder.pl
Date: Mon, 17 Aug 2009 17:06
Date: Mon, 17 Aug 2009 17:06
13 lines
1478 bytes
1478 bytes
Sexbox wrote on 2009-08-17 19:00:
> function fnZawieraWulgaryzm ($s) {
> $azleslowa = array ('dupa', 'pisior');
> return (str_replace ($azleslowa, '', $s) != $s);
http://pl2.php.net/manual/en/function.substr-count.php
Pozdrawiam,
--
Szyfrowanie skryptow PHP v4 oraz v5. Blokady: czasowe, IP, MAC
Loadery dla systemow: Windows, Linux, MacOS, Free/BSD, Solaris
Zabezpiecz swoje skrypty PHP! Przetestuj http://phpencoder.pl
Technical Details
Message-ID:
<h6c2oi$gh2$1@newsread.aster.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!news.nask.pl!news.nask.org.pl!plix.pl!newsfeed1.plix.pl!nntp.aster.pl!newsread.aster.pl!not-for-mailReferences:
<h6c2gq$26m$1@atlantis.news.neostrada.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!news.nask.pl!news.nask.org.pl!plix.pl!newsfeed1.plix.pl!nntp.aster.pl!newsread.aster.pl!not-for-mail From: "NEO.pl / PHPEncoder.pl" <info@phpencoder.R3m0v3.pl> Newsgroups: pl.comp.lang.php Subject: Re: Jakiej funkcji używacie do sprawdzenia zawierania się jednego ze słów tablicy w stringu Date: Mon, 17 Aug 2009 19:06:33 +0200 Organization: NEO.pl Lines: 13 Message-ID: <h6c2oi$gh2$1@newsread.aster.pl> References: <h6c2gq$26m$1@atlantis.news.neostrada.pl> NNTP-Posting-Host: 32-bem-22.acn.waw.pl Mime-Version: 1.0 X-Trace: newsread.aster.pl 1250528850 16930 85.222.105.32 (17 Aug 2009 17:07:30 GMT) X-Complaints-To: abuse@aster.pl NNTP-Posting-Date: Mon, 17 Aug 2009 17:07:30 +0000 (UTC) User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <h6c2gq$26m$1@atlantis.news.neostrada.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit