htmlspecialchars() expects parameter 1 to be string, array given code example
Example 1: Warning: func_get_arg() expects exactly 1 parameter, 0 given in
$func_data = array();
for($i = 0;$i < func_num_args();$i++)
{
array_push($func_data,func_get_arg($i));
}
Example 2: htmlspecialchars() expects parameter 1 to be string array given in laravel blade
@foreach ($var as $key)
@endforeach