П О Р Т А Л                            
С Е Т Е В Ы Х                          
П Р О Е К Т О В                        
  
Поиск по сайту:
                                                 
Главная

О проекте

Web-мастеру
     HTML & JavaScript
     SSI
     Perl
     PHP
     XML & XSLT
     Unix Shell

MySQL

Безопасность

Хостинг

Другое








Самое читаемое:

Учебник PHP - "Для Чайника".
Просмотров 5652 раз(а).

Иллюстрированный самоучитель по созданию сайтов.
Просмотров 7929 раз(а).

Учебник HTML.
Просмотров 4658 раз(а).

Руководство по PHP5.
Просмотров 1251 раз(а).

Хостинг через призму DNS.
Просмотров 6555 раз(а).

Подборка текстов стандартных документов.
Просмотров 57298 раз(а).

Учебник PHP - Самоучитель
Просмотров 4906 раз(а).

Документация на MySQL (учебник & справочное руководство)
Просмотров 10980 раз(а).

Внешние атаки...
Просмотров 6590 раз(а).

Учебник PHP.
Просмотров 3978 раз(а).

SSI в примерах.
Просмотров 1003 раз(а).



 
 
| Добавить в избранное | Сделать стартовой | Помощь





Руководство по PHP
Пред. След.

php_strip_whitespace

(PHP 5)

php_strip_whitespace --  Return source with stripped comments and whitespace

Описание

string php_strip_whitespace ( string filename )

Returns the PHP source code in filename with PHP comments and whitespace removed. This may be useful for determining the amount of actual code in your scripts compared with the amount of comments. This is similar to using php -w from the commandline.

Замечание: This function works as described as of PHP 5.0.1. Before this it would only return an empty string. For more information on this bug and its prior behavior, see bug report #29606.

Возвращаемые значения

The stripped source code will be returned on success, or an empty string on failure.

Примеры

Пример 1. php_strip_whitespace() example

<?php
// PHP comment here

/*
* Another PHP comment
*/

echo        php_strip_whitespace(__FILE__);
// Newlines are considered whitespace, and are removed too:
do_nothing();
?>

Результат выполнения данного примера:

<?php
 echo php_strip_whitespace(__FILE__); do_nothing(); ?>

Notice the PHP comments are gone, as are the whitespace and newline after the first echo statement.



Если Вы не нашли что искали, то рекомендую воспользоваться поиском по сайту:
 





Copyright © 2005-2016 Project.Net.Ru