- htmlentities: documentation ( source)
<?php
function html($value)
{
return htmlentities($value);
}
class Foo
{
function html($value)
{
return htmlentities($value);
}
}
$value = '123';
$object = new Foo();
htmlentities($value);
html($value);
$object->html($value);
call_user_func('html', $value);
call_user_func(array($object, 'html'), $value);
call_user_func_array($func, array($value));
call_user_func_array(array($object, 'html'), array($value));