Новые книги

Книга английских специалистов, содержащая описание основ логического программирования и особенностей языка Пролог – базового языка ЭВМ пятого поколения. Области применения этого языка связаны с разработкой экспертных систем, интеллектуальных баз данных, обработкой естественного языка, разработкой компиляторов ЭВМ. Книга полезна для первого ознакомления с языком Пролог.
GNU Emacs is the most popular and widespread of the Emacs family of editors. It is also the most powerful and flexible. Unlike all other text editors, GNU Emacs is a complete working environment—you can stay within Emacs all day without leaving.

, 3rd Edition tells readers how to get started with the GNU Emacs editor. It is a thorough guide that will also "grow" with you: as you become more proficient, this book will help you learn how to use Emacs more effectively. It takes you from basic Emacs usage (simple text editing) to moderately complicated customization and programming.The third edition of

describes Emacs 21.3 from the ground up, including new user interface features such as an icon-based toolbar and an interactive interface to Emacs customization. A new chapter details how to install and run Emacs on Mac OS X, Windows, and Linux, including tips for using Emacs effectively on those platforms.

, third edition, covers:

Learning GNU Emacs

Learning GNU Emacs

Learning GNU Emacs

• How to edit files with Emacs

• Using the operating system shell through Emacs

• How to use multiple buffers, windows, and frames

• Customizing Emacs interactively and through startup files

• Writing macros to circumvent repetitious tasks

• Emacs as a programming environment for Java, C++, and Perl, among others

• Using Emacs as an integrated development environment (IDE)

• Integrating Emacs with CVS, Subversion and other change control systems for projects with multiple developers

• Writing HTML, XHTML, and XML with Emacs

• The basics of Emacs Lisp

The book is aimed at new Emacs users, whether or not they are programmers. Also useful for readers switching from other Emacs implementations to GNU Emacs.

rtrim

Учебник РНР
НазадВперёд

rtrim

(PHP 3, PHP 4)

rtrim - вырезает пробелы в конце строки.

Описание

string rtrim (string str [, string charlist])

Примечание: второй параметр был добавлен в PHP 4.1.0.

Эта функция возвращает строку str с вырезанными в конце пробелами. Без второго параметра rtrim() вырежет следующие символы:

  • " " (ASCII 32 (0x20)), обычный пробел/space.

  • "\t" (ASCII 9 (0x09)), табуляцию/tab.

  • "\n" (ASCII 10 (0x0A)), символ новой строки (line feed).

  • "\r" (ASCII 13 (0x0D)), возврат каретки/carriage return.

  • "\0" (ASCII 0 (0x00)), NUL-байт.

  • "\x0B" (ASCII 11 (0x0B)), табуляция по вертикали/vertical tab.

Вы можете также специфицировать символы, которые вы хотите вырезать, с помощью параметра charlist. Просто перечислите все символы, которые вы хотите вырезать. С помощью .. вы можете специфицировать диапазон символов.

Пример 1. Использование rtrim()
<?php

$text = "\t\tThese are a few words :) ...  ";
$trimmed = rtrim($text);
// $trimmed = "\t\tThese are a few words :) ..."
$trimmed = rtrim($text," \t.");
// $trimmed = "\t\tThese are a few words :)"
$clean = rtrim($binary,"\0x00..\0x1F");
// вырезает управляющие ASCII-символы в конце $binary 
// (с 0 по 31 включительно)

?>

См. также trim() и ltrim().


Назад Оглавление Вперёд
quotemeta Вверхsetlocale