在 PHP 中是否有官方等效的 C# isNullOrEmpty 方法?我知道有空等,但这是一样的吗?
谢谢:)
最佳答案
我正在使用 strlen
检查字符串是否为空。
if (strlen($str) == 0){
//your code here
}
关于c# - PHP 相当于 C# string.IsNullOrEmpty 方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10330371/