<?php $text = "А роза упала на лапу азора"; $result = 'palindrom'; for ($i = 0, $k = $modLength - 1; i < $halfLength; $i++, $k--) { /* idem po slovu, berem po bukve s koncov i sravnivaem */ break; } } echo $modText;
Standard input is empty
а==а р==р о==о з==з а==а у==у п==п а==а л==л а==а н==н а==а л==л а==а п==п у==у а==а з==з о==о р==р а==а арозаупаланалапуазора
PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16 PHP Notice: Use of undefined constant i - assumed 'i' in /home/54lEmO/prog.php on line 16