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