is_blank()? [英] is_blank()?

查看:147
本文介绍了is_blank()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我怎样才能检查字符串变量是否只包含空格?

empty()不起作用,除非字符串变量是"。 />

-

iTech咨询服务有限公司

ePOS(销售点)解决方案专家

网站: http://www.itech.com.hk (仅限IE)

电话:(852)2325 3883传真:(852)2325 8288


How could I check whether a string variable contains nothing but space?
empty() does not work unless the string variable is "".

--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288

推荐答案

Man-wai Chang写道:
Man-wai Chang wrote:

>

如何检查字符串变量是否只包含空格?

empty()除非字符串变量是"否则不起作用。
>
How could I check whether a string variable contains nothing but space?
empty() does not work unless the string variable is "".



empty(trim(

empty(trim(


variable));


Hendri Kurniawan
variable));

Hendri Kurniawan


5月10日晚上10点38分,Hendri Kurniawan<问... @ email.comwrote:
On May 10, 10:38 pm, Hendri Kurniawan <ask...@email.comwrote:

Man-wai Chang写道:
Man-wai Chang wrote:

如何检查字符串变量是否只包含空格?

除非字符串变量是",否则empty()不起作用。
How could I check whether a string variable contains nothing but space?
empty() does not work unless the string variable is "".



为空(修剪(


empty(trim(


这篇关于is_blank()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆