fork(1) download
  1. <?php
  2. $text = "А роза упала на лапу Азора";
  3. $text = str_replace(' ','',$text);
  4. $text = mb_strtolower($text);
  5. $lenght = mb_strlen($text);
  6. $halfLenght = floor($lenght / 2);
  7. for ($i=0; $i <= $halfLenght; $i++) {
  8. if (mb_substr($text, $i, $i + 1) == mb_substr($text, gmp_neg($i)) {
  9. echo "Полиндром!";
  10. }
  11. else{
  12. echo "Не Полиндром";
  13. }
  14. }
Runtime error #stdin #stdout #stderr 0.01s 83264KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected 'echo' (T_ECHO) in /home/wHjg9i/prog.php on line 10