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

О проекте

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

MySQL

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

Хостинг

Другое








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

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

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

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

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

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

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

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

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

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

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

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



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





Руководство по 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