Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the empty function to output

Shulou Source: shulou.com Published: 2022-06-03 07:11:51 11月15日 Update

This article will explain in detail how to use empty function output, the editor thinks it is very practical, so share it with you as a reference, I hope you can get something after reading this article.

$a =''

Echo '1.-'.empty ($a).

'

$a ='0'

Echo '2.-'.empty ($a).

'

$a = 0

Echo '3.-'.empty ($a).

'

$a = null

Echo '4.-'.empty ($a).

'

$a = 'null'

Echo '5.-'.empty ($a).

'

$a = 'abc'

Echo '6.-'.empty ($a).

'

$a = true

Echo '7.-'.empty ($a).

'

$a = 'true'

Echo '8.-'.empty ($a).

'

$a = false

Echo '9.-'.empty ($a).

'

$a = 'false'

Echo '10.-'.empty ($a).

'

$a = 1

Echo '11.-'.empty ($a).

'

$a ='1'

Echo '12.-'.empty ($a).

'

$a = 'null'

Echo '13.Mutual empty ($a).

'

Results:

1. Murray 1

2. Murray 1

3.While 1

4. Murray 1

5.-

6.-

7.-

8.8-

9.When 1

10.10-

11.11-

12.12-

13.While 1

This is the end of this article on "how to use empty function output". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

Tags: Articles functions output more good practical content articles knowledge results references help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL macOS vpn Apple Shulou Technology