echo "<p>" . $a . "</p>"; $a--; myFunc6($a, $b); } else { $a--; myFunc6($a, $b); } } else { if ($a % 2 == 0 && $a != 0) { echo "<p>" . $a . "</p>"; } } } myFunc6(10, -35); //ceдьмая функция function myFunc7($s) { $s = iconv("UTF-8", "windows-1251", $s); $revers_s = strrev($s); $flag = "Не полиндром"; while ($i <= strlen($s) && $s[$i] == $revers_s[$i]) { $i++; if ($i == strlen($s)) { $flag = 'Полиндром'; } } echo $flag; } //strrev("Hello world!"); вернет реверсную строку myFunc7('наван');
<?php $item = c($item); switch ($item->name) { case 'it_exit': app::close(); break; case 'it_new': myFunc3(); break; case 'it_open': myFunc7(); break; case 'it_save': myFunc6(); break; case 'it_save_as': my_SaveAs(); break; case 'it_printtext': if (c("controltab")->caption == 1) { $x = c("pages1")->pageIndex + 1; $namet = "memo"; } if (c("controltab")->caption == 2) { $x = c("pages3")->pageIndex + 1; $namet = "tmemo"; } $color = c("{$namet}{$x}")->font->color; $size = c("{$namet}{$x}")->font->size . "pt"; $font = c("{$namet}{$x}")->font->name;