Retweeted
UnPHPular Opinion:
! $variable is wrong 99% of the time.
empty( $variable ) is usually what you want.
! is for Boolean comparisons – true/false
empty() is for checking if a variable is non-empty, non-zero, or is not set.
UnPHPular Opinion:
! $variable is wrong 99% of the time.
empty( $variable ) is usually what you want.
! is for Boolean comparisons – true/false
empty() is for checking if a variable is non-empty, non-zero, or is not set.
@JJJ
WordPress things.