<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Неофициальный форум DLNA Home Media Server &mdash; Приветствую всех! Народ помогите перевести в php]]></title>
		<link>https://hms.lostcut.net/viewtopic.php?id=603</link>
		<atom:link href="https://hms.lostcut.net/extern.php?action=feed&amp;tid=603&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Приветствую всех! Народ помогите перевести в php».]]></description>
		<lastBuildDate>Sat, 09 Mar 2019 09:15:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Приветствую всех! Народ помогите перевести в php]]></title>
			<link>https://hms.lostcut.net/viewtopic.php?pid=14035#p14035</link>
			<description><![CDATA[<div class="quotebox"><cite>baat пишет:</cite><blockquote><div class="codebox"><pre><code>&lt;?php
function encode($input){

$map = array(&#039;A&#039;,&#039;B&#039;,&#039;C&#039;,&#039;D&#039;,&#039;E&#039;,&#039;F&#039;,&#039;G&#039;,&#039;H&#039;,&#039;J&#039;,&#039;K&#039;,&#039;M&#039;,&#039;N&#039;,&#039;P&#039;,&#039;Q&#039;,&#039;R&#039;,&#039;S&#039;,&#039;T&#039;,&#039;U&#039;,&#039;V&#039;,&#039;W&#039;,&#039;X&#039;,&#039;Y&#039;,&#039;Z&#039;,&#039;a&#039;,&#039;b&#039;,&#039;c&#039;,&#039;d&#039;,&#039;e&#039;,&#039;f&#039;,&#039;g&#039;,&#039;h&#039;,&#039;j&#039;,&#039;k&#039;,&#039;m&#039;,&#039;n&#039;,&#039;p&#039;,&#039;q&#039;,&#039;r&#039;,&#039;s&#039;,&#039;t&#039;,&#039;u&#039;,&#039;v&#039;,&#039;x&#039;,&#039;y&#039;,&#039;z&#039;,&#039;1&#039;,&#039;2&#039;,&#039;3&#039;);

$length=count($map);
$encoded=&quot;&quot;;
if($input==0) return $map[0];

if($input&lt;0) { 
   $input*=-1; $encoded.=&quot;-&quot;;}
   echo ($input%$length.&#039;&lt;br&gt;&#039;);
    while( $input&gt;0 ){

        $val=intval($input%$length);
        $input=intval($input/$length);
        $encoded.=$map[$val]; }

return $encoded; }</code></pre></div><p>приблизительно вот так... если в лоб...</p><p>но лучше напиши, что оно делать должно и пример входной и выходной строки...</p></blockquote></div><p>Добрый день! Спасибо то что нужно,работает!</p>]]></description>
			<author><![CDATA[null@example.com (na-socke.tk)]]></author>
			<pubDate>Sat, 09 Mar 2019 09:15:00 +0000</pubDate>
			<guid>https://hms.lostcut.net/viewtopic.php?pid=14035#p14035</guid>
		</item>
		<item>
			<title><![CDATA[Re: Приветствую всех! Народ помогите перевести в php]]></title>
			<link>https://hms.lostcut.net/viewtopic.php?pid=13833#p13833</link>
			<description><![CDATA[<div class="codebox"><pre><code>&lt;?php
function encode($input){

$map = array(&#039;A&#039;,&#039;B&#039;,&#039;C&#039;,&#039;D&#039;,&#039;E&#039;,&#039;F&#039;,&#039;G&#039;,&#039;H&#039;,&#039;J&#039;,&#039;K&#039;,&#039;M&#039;,&#039;N&#039;,&#039;P&#039;,&#039;Q&#039;,&#039;R&#039;,&#039;S&#039;,&#039;T&#039;,&#039;U&#039;,&#039;V&#039;,&#039;W&#039;,&#039;X&#039;,&#039;Y&#039;,&#039;Z&#039;,&#039;a&#039;,&#039;b&#039;,&#039;c&#039;,&#039;d&#039;,&#039;e&#039;,&#039;f&#039;,&#039;g&#039;,&#039;h&#039;,&#039;j&#039;,&#039;k&#039;,&#039;m&#039;,&#039;n&#039;,&#039;p&#039;,&#039;q&#039;,&#039;r&#039;,&#039;s&#039;,&#039;t&#039;,&#039;u&#039;,&#039;v&#039;,&#039;x&#039;,&#039;y&#039;,&#039;z&#039;,&#039;1&#039;,&#039;2&#039;,&#039;3&#039;);

$length=count($map);
$encoded=&quot;&quot;;
if($input==0) return $map[0];

if($input&lt;0) { 
   $input*=-1; $encoded.=&quot;-&quot;;}
   echo ($input%$length.&#039;&lt;br&gt;&#039;);
    while( $input&gt;0 ){

        $val=intval($input%$length);
        $input=intval($input/$length);
        $encoded.=$map[$val]; }

return $encoded; }</code></pre></div><p>приблизительно вот так... если в лоб...</p><p>но лучше напиши, что оно делать должно и пример входной и выходной строки...</p>]]></description>
			<author><![CDATA[null@example.com (baat)]]></author>
			<pubDate>Fri, 01 Feb 2019 14:01:36 +0000</pubDate>
			<guid>https://hms.lostcut.net/viewtopic.php?pid=13833#p13833</guid>
		</item>
		<item>
			<title><![CDATA[Приветствую всех! Народ помогите перевести в php]]></title>
			<link>https://hms.lostcut.net/viewtopic.php?pid=13819#p13819</link>
			<description><![CDATA[<p>Пробовал сам произвести перевод но что-то ничего не выходит у меня :-( Может кто-то откликнется и поможет решить эту задачу :-) </p><div class="codebox"><pre><code>var map=[&#039;A&#039;,&#039;B&#039;,&#039;C&#039;,&#039;D&#039;,&#039;E&#039;,&#039;F&#039;,&#039;G&#039;,&#039;H&#039;,&#039;J&#039;,&#039;K&#039;,&#039;M&#039;,&#039;N&#039;,&#039;P&#039;,&#039;Q&#039;,&#039;R&#039;,&#039;S&#039;,&#039;T&#039;,&#039;U&#039;,&#039;V&#039;,&#039;W&#039;,&#039;X&#039;,&#039;Y&#039;,&#039;Z&#039;,&#039;a&#039;,&#039;b&#039;,&#039;c&#039;,&#039;d&#039;,&#039;e&#039;,&#039;f&#039;,&#039;g&#039;,&#039;h&#039;,&#039;j&#039;,&#039;k&#039;,&#039;m&#039;,&#039;n&#039;,&#039;p&#039;,&#039;q&#039;,&#039;r&#039;,&#039;s&#039;,&#039;t&#039;,&#039;u&#039;,&#039;v&#039;,&#039;x&#039;,&#039;y&#039;,&#039;z&#039;,&#039;1&#039;,&#039;2&#039;,&#039;3&#039;];

function encode(input){
length=map.length;
var encoded=&quot;&quot;;
if(input==0)
return map[0];
if(input&lt;0){
    input*=-1;encoded+=&quot;-&quot;};
    console.log(input%length);
    while(input&gt;0){
        
        val=parseInt(input%length);
        input=parseInt(input/length);
        encoded+=map[val]
        }
        
return encoded};</code></pre></div><p>Заранее спасибо всем кто откликнется!</p>]]></description>
			<author><![CDATA[null@example.com (na-socke.tk)]]></author>
			<pubDate>Fri, 25 Jan 2019 04:26:43 +0000</pubDate>
			<guid>https://hms.lostcut.net/viewtopic.php?pid=13819#p13819</guid>
		</item>
	</channel>
</rss>
