PHP/String/chop

Материал из Web эксперт
Версия от 10:07, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

chop() function returns a string minus any ending whitespace and newlines.

   <source lang="html4strict">

Its syntax is: string chop (string str) //Using chop() to remove unnecessary newlines: <?

   $header = "Table of Contents:\n\n";
   $header = chop($header);
   print $header;

?>

 </source>