Do not confuse again, the function empty (var); determining the value of the output is false: true

Concepts: empty () is to determine whether an array, variables, constants, string is empty.

empty () when the output true, description is empty, it is to have the opposite value is false.

<?php

$value1 = "";

$value2 = "666";

var_dump(empty($value1));  ::::true

var_dump(empty($value2));  ::::false

 

Guess you like

Origin www.cnblogs.com/web928943/p/12582440.html