🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: jak uproscic funkcje

#219832
From: d.
Date: Fri, 24 Jul 2009 07:38
15 lines
1252 bytes
	function fixChars ($str) {
		$pl = array('ą', 'Ą', 'ć', 'Ć', 'ę', 'Ę', 'ł', 'Ł', 'ń', 'Ń', 'ó',
'Ó', 'ś', 'Ś', 'ź', 'Ź', 'ż', 'Ż', ' ', '?', '!', '.', ',', '"', ';',
':', '+', '=', "'", '&rdquo', '&bdquo', '&', '/');
		$re = array('a', 'A', 'c', 'C', 'e', 'E', 'l', 'L', 'n', 'N', 'o',
'O', 's', 'S', 'z', 'ź', 'z', 'Z', '_', '', '', '', '', '', '', '-',
'', '', '', '', '', 'i', '_');
		$str = trim(strip_tags($str));
		$str = str_replace($pl, $re, $str);		
		return $str;
	}


pzdr,
d.
Technical Details
Message-ID: <4a6964e7@news.home.net.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!news.home.net.pl!not-for-mail
References: <h46fn3$5df$1@news.onet.pl>

Show Full Headers
Complete Article Headers
From: "d." <div@blackbox.home.pl>
Subject: Re: jak uproscic funkcje
Newsgroups: pl.comp.lang.php
References: <h46fn3$5df$1@news.onet.pl>
User-Agent: XanaNews/1.18.1.6
MIME-Version: 1.0
X-Antivirus: avast! (VPS 090723-0, 2009-07-23), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 83.3.183.162
Message-ID: <4a6964e7@news.home.net.pl>
Date: 24 Jul 2009 09:38:15 +0200
X-Trace: news.home.net.pl 1248421095 83.3.183.162 (24 Jul 2009 09:38:15 +0200)
Organization: home.pl news server
Lines: 15
X-Authenticated-User: blackbox
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!news.home.net.pl!not-for-mail
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit