Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$array = [];
var_dump(empty($array));
$arrayObj = new ArrayObject();
var_dump(empty($arrayObj));
// Hasil:
// bool(true)
// bool(false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment