如何比较空字符串 [英] how to compare null string
本文介绍了如何比较空字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在下面做了空字符串比较...
但是无法工作,因为我键入了一些值进入$ company领域,但它没有打印出okok,但不是很好。我用if if($ company!='''')也没有帮助...
你能提出建议吗?
干杯......
Andrew
Hi all,
I did the null string comparison for below...
But could not work as i keyed some value into the $company field but it did not print out okok, but not ok. I used if ($company != '''') also did not help...
Can you kindly advise?
Cheers...
Andrew
展开 | 选择 | Wrap | 行号
推荐答案
公司领域,但它没有打印okok,但不是很好。我用if if(
company field but it did not print out okok, but not ok. I used if (
company!='''')也没有帮助...
你能建议吗?
干杯......
Andrew
company != '''') also did not help...
Can you kindly advise?
Cheers...
Andrew
展开 | 选择 | 换行 | 行号
大家好,
我使用了eq,因为它是字符串...但仍然没有工作..
干杯...
Andrew
Hi all,
I used eq as it is string.. but still didnt work..
Cheers...
Andrew
E xpand | 选择 | Wrap | 行号
这篇关于如何比较空字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文