删除字符串开头和结尾的双引号

问题描述:

我想找出的是哪个php函数允许我删除文本字符串开头和结尾的双引号(如果存在的话)

What I'm trying to find out is which php function allows me to remove double quotes from the beginning and end of a text string if they exist

使用 trim 函数:

$str = '"Hello"';
echo trim($str, '"'); // Outputs Hello