๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #219827

Re: jak uproscic funkcje

#219827
From: NEO.pl / PHPEncoder.pl
Date: Wed, 22 Jul 2009 14:15
16 lines
1289 bytes
Lemat wrote on 2009-07-22 15:54:

> preg_replace('/[^a-zA-Z0-9]/','_',$string);

dodalbym jeszcze zamianฤ™ ogonkow ("ฤ…" => "a" etc) bo to
jednak lepiej bedzie wygladalo

> str_replace('__','_');



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: <h476ss$kre$1@newsread1.aster.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!pingwin.aster.pl!newsread1.aster.pl!not-for-mail
References: <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.gazeta.pl!newsfeed.pionier.net.pl!pingwin.aster.pl!newsread1.aster.pl!not-for-mail
From: "NEO.pl / PHPEncoder.pl" <info@phpencoder.R3m0v3.pl>
Newsgroups: pl.comp.lang.php
Subject: Re: jak uproscic funkcje
Date: Wed, 22 Jul 2009 16:15:19 +0200
Organization: NEO.pl
Lines: 16
Message-ID: <h476ss$kre$1@newsread1.aster.pl>
References: <h46fn3$5df$1@news.onet.pl> <h475pr$2qp$1@atlantis.news.neostrada.pl>
NNTP-Posting-Host: 32-bem-22.acn.waw.pl
Mime-Version: 1.0
X-Trace: newsread1.aster.pl 1248272092 21358 85.222.105.32 (22 Jul 2009 14:14:52 GMT)
X-Complaints-To: abuse@aster.pl
NNTP-Posting-Date: Wed, 22 Jul 2009 14:14:52 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
In-Reply-To: <h475pr$2qp$1@atlantis.news.neostrada.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit