<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>PHP для начинающих - Форум программистов и сисадминов Киберфорум</title>
		<link>https://www.cyberforum.ru/</link>
		<description>Форум программистов PHP. Вопросы начинающих по PHP. Помощь в решении задач на PHP.</description>
		<language>ru</language>
		<lastBuildDate>Fri, 21 Aug 2026 03:08:04 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>https://www.cyberforum.ru//cyberstatic.net/images/misc/rss.jpg</url>
			<title>PHP для начинающих - Форум программистов и сисадминов Киберфорум</title>
			<link>https://www.cyberforum.ru/</link>
		</image>
		<item>
			<title>Как сократить код? - PHP для начинающих</title>
			<link>https://www.cyberforum.ru/php-beginners/thread3225118.html</link>
			<pubDate>Sun, 16 Aug 2026 11:57:15 GMT</pubDate>
			<description><![CDATA[Здравствуйте уважаемые специалисты! 
 
Есть необходимость в написании такого кода: 
 
<div...]]></description>
			<content:encoded><![CDATA[<div>Здравствуйте уважаемые специалисты!<br />
<br />
Есть необходимость в написании такого кода:<br />
<br />
<div class="printablecode">
	<div class="smallfont">:</div>
	<hr /><code dir="ltr">&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'name'&#93; = strip_tags($_POST&#91;'name'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'name'&#93; = stripslashes($_POST&#91;'name'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'name'&#93; = htmlspecialchars($_POST&#91;'name'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'name'&#93; = trim($_POST&#91;'name'&#93;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'email'&#93; = strip_tags($_POST&#91;'email'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'email'&#93; = stripslashes($_POST&#91;'email'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'email'&#93; = htmlspecialchars($_POST&#91;'email'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'email'&#93; = trim($_POST&#91;'email'&#93;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'password'&#93; = strip_tags($_POST&#91;'password'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'password'&#93; = htmlspecialchars($_POST&#91;'password'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'password'&#93; = trim($_POST&#91;'password'&#93;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'password1'&#93; = strip_tags($_POST&#91;'password1'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'password1'&#93; = htmlspecialchars($_POST&#91;'password1'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'password1'&#93; = trim($_POST&#91;'password1'&#93;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha1'&#93; = strip_tags($_POST&#91;'captcha1'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha1'&#93; = htmlspecialchars($_POST&#91;'captcha1'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha1'&#93; = str_replace(&quot; &quot;,&quot;&quot;,$_POST&#91;'captcha1'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha1'&#93; = strtolower($_POST&#91;'captcha1'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha2'&#93; = strip_tags($_POST&#91;'captcha2'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha2'&#93; = htmlspecialchars($_POST&#91;'captcha2'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha2'&#93; = str_replace(&quot; &quot;,&quot;&quot;,$_POST&#91;'captcha2'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha2'&#93; = strtolower($_POST&#91;'captcha2'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha3'&#93; = strip_tags($_POST&#91;'captcha3'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha3'&#93; = htmlspecialchars($_POST&#91;'captcha3'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha3'&#93; = str_replace(&quot; &quot;,&quot;&quot;,$_POST&#91;'captcha3'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha3'&#93; = strtolower($_POST&#91;'captcha3'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha4'&#93; = strip_tags($_POST&#91;'captcha4'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha4'&#93; = htmlspecialchars($_POST&#91;'captcha4'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha4'&#93; = str_replace(&quot; &quot;,&quot;&quot;,$_POST&#91;'captcha4'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha4'&#93; = strtolower($_POST&#91;'captcha4'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha5'&#93; = strip_tags($_POST&#91;'captcha5'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha5'&#93; = htmlspecialchars($_POST&#91;'captcha5'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha5'&#93; = str_replace(&quot; &quot;,&quot;&quot;,$_POST&#91;'captcha5'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha5'&#93; = strtolower($_POST&#91;'captcha5'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha6'&#93; = strip_tags($_POST&#91;'captcha6'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha6'&#93; = htmlspecialchars($_POST&#91;'captcha6'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha6'&#93; = str_replace(&quot; &quot;,&quot;&quot;,$_POST&#91;'captcha6'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha6'&#93; = strtolower($_POST&#91;'captcha6'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha7'&#93; = strip_tags($_POST&#91;'captcha7'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha7'&#93; = htmlspecialchars($_POST&#91;'captcha7'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha7'&#93; = str_replace(&quot; &quot;,&quot;&quot;,$_POST&#91;'captcha7'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha7'&#93; = strtolower($_POST&#91;'captcha7'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha8'&#93; = strip_tags($_POST&#91;'captcha8'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha8'&#93; = htmlspecialchars($_POST&#91;'captcha8'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha8'&#93; = str_replace(&quot; &quot;,&quot;&quot;,$_POST&#91;'captcha8'&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $_POST&#91;'captcha8'&#93; = strtolower($_POST&#91;'captcha8'&#93;);</code><hr />
</div>Подскажите, пожалуйста, создает ли такой код повышенную нагрузку или что-то еще, что плохо. Даже не знаю, как правильно сформулировать этот вопрос. Короче, это плохо или нормально? И можно ли его как-то сократить, если в этом есть такая необходимость? Если да, то как правильно это сделать?</div>

]]></content:encoded>
			<category domain="https://www.cyberforum.ru/php-beginners/">PHP для начинающих</category>
			<dc:creator>Kuzma92</dc:creator>
			<guid isPermaLink="true">https://www.cyberforum.ru/php-beginners/thread3225118.html</guid>
		</item>
	</channel>
</rss>
