I want to escape an array in php
I try to escape with addslashes function but it doesn't work
while($row = $res->fetch_assoc())
{
$row['name']=addslashes($row['agente']); //escape ?
$rows[] = $row;
}
I want to escape the name of a person call 'Antonio cinà' but it doesn't work The problem is 'à'