function simpletest_xmlrpc_countTheEntities in SimpleTest 6
Same name and namespace in other branches
- 5 simpletest_xmlrpc.module \simpletest_xmlrpc_countTheEntities()
1 call to simpletest_xmlrpc_countTheEntities()
1 string reference to 'simpletest_xmlrpc_countTheEntities'
- simpletest_xmlrpc_xmlrpc in ./
simpletest_xmlrpc.module - Implementation of hook_xmlrpc()
File
- ./
simpletest_xmlrpc.module, line 30
Code
function simpletest_xmlrpc_countTheEntities($string) {
return array(
'ctLeftAngleBrackets' => substr_count($string, '<'),
'ctRightAngleBrackets' => substr_count($string, '>'),
'ctAmpersands' => substr_count($string, '&'),
'ctApostrophes' => substr_count($string, "'"),
'ctQuotes' => substr_count($string, '"'),
);
}