Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图找出的是哪个php函数允许我从文本字符串的开头和结尾删除双引号(如果它们存在)
使用修剪功能:
$str = '"Hello"'; echo trim($str, '"'); // Outputs Hello
修剪是你的朋友:
trim($string,'"');