xmlrpc_example_countTheEntities
developer/examples/xmlrpc_example.module, строка 39
- Версии
- 5 – 6
xmlrpc_example_countTheEntities($string)
Код
<?php
function xmlrpc_example_countTheEntities($string) {
return array(
'ctLeftAngleBrackets' => substr_count($string, '<'),
'ctRightAngleBrackets' => substr_count($string, '>'),
'ctAmpersands' => substr_count($string, '&'),
'ctApostrophes' => substr_count($string, "'"),
'ctQuotes' => substr_count($string, '"'),
);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии