php: check if variable contains a value
2025-07-04
IN1, 2025-07-04 09:23:39
IN1, 2025-07-04 09:34:10


The value 0 is also considered empty - although there is definitely a value here.

If you want to prevent this, you must also query for false === is_numeric - this excludes 0.

So here we do not check for emptiness, but for value

which makes false === hasValue() equivalent in the same meaning to true === empty(), but considers 0 value as well.

function hasValue()


Postfix: E-Mails zu einer bestimmten E-Mail Adresse aus der Mail-Queue anzeigen und löschen
2022-03-22
IN1, 2022-03-22 00:00:00
IN1, 2023-04-14 14:45:35


Folgendes Script zeigt Einträge in der Mail-Queue von Postfix zu einer angegebenen E-Mail Adresse. Es kann wahlweise nach Sender und Empfänger unterschieden werden. Wird der Parameter "del" mitgegeben, werden entsprechende Einträge aus der Mail-Queue gelöscht.

Usage

# zeigt alle Einträge in der Mail-Queue wo Sender = E-Mail Adr […]


This website uses Cookies to provide you with the best possible service. Please see our Privacy Policy for more information. Click the check box below to accept cookies. Then confirm with a click on "Save".