Article View: pl.comp.lang.php
Article #219828Re: jak uproscic funkcje
From: albert
Date: Thu, 23 Jul 2009 06:06
Date: Thu, 23 Jul 2009 06:06
14 lines
1404 bytes
1404 bytes
>> jak to co powyzej zapisac prosciej ???
>
> może:
> preg_replace('/[^a-zA-Z0-9]/','_',$string);
> str_replace('__','_');
no to jest proste, ale efekt mizerny, bo kazde wystapienie znaku spoza az09
zamienia na _ w efekcie
śżźćĄŚŻŹĆ sdfsd 2007 !!!! - - - __ __ asdffdfdś
zamienia na
_____sdfsd_2007___________asdffdfd_
wiem, ze takich pierdol nikt raczej w tytule nie wpisuje, ale byw nap ze da
kilka ! i mamy wowczas jatke :)
Technical Details
Message-ID:
<h48ul8$7rn$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mailReferences:
<h46fn3$5df$1@news.onet.pl> <h475pr$2qp$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!not-for-mail From: "albert" <qwerty1231@vp.pl> Newsgroups: pl.comp.lang.php Subject: Re: jak uproscic funkcje Date: Thu, 23 Jul 2009 08:06:32 +0200 Organization: http://onet.pl Lines: 16 Message-ID: <h48ul8$7rn$1@news.onet.pl> References: <h46fn3$5df$1@news.onet.pl> <h475pr$2qp$1@atlantis.news.neostrada.pl> Reply-To: "albert" <qwerty1231@vp.pl> NNTP-Posting-Host: 78-131-216-98.tktelekom.pl X-Trace: news.onet.pl 1248329192 8055 78.131.216.98 (23 Jul 2009 06:06:32 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Thu, 23 Jul 2009 06:06:32 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-RFC2646: Format=Flowed; Original MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit