<?php
$dadosCompletos = [
'nome' => "Usuario",
'idade' => 99,
'cidade' => "Sao Paulo",
];
$dadosParciais = [
'nome' => null,
'idade' => "",
'cidade' => "Rio de Janeiro",
];
function possuiCamposVazios
(array $arrayCampos): bool
{
return count($dif) === 0 ?
false : true; }
var_dump(possuiCamposVazios
($dadosCompletos)); var_dump(possuiCamposVazios
($dadosParciais));
PD9waHAKCiRkYWRvc0NvbXBsZXRvcyA9IFsKCSdub21lJyA9PiAiVXN1YXJpbyIsCgknaWRhZGUnID0+IDk5LAoJJ2NpZGFkZScgPT4gIlNhbyBQYXVsbyIsCl07CgokZGFkb3NQYXJjaWFpcyA9IFsKCSdub21lJyA9PiBudWxsLAoJJ2lkYWRlJyA9PiAiIiwKCSdjaWRhZGUnID0+ICJSaW8gZGUgSmFuZWlybyIsCl07CgpmdW5jdGlvbiBwb3NzdWlDYW1wb3NWYXppb3MoYXJyYXkgJGFycmF5Q2FtcG9zKTogYm9vbCB7CgkkZmlsdHJvID0gYXJyYXlfZmlsdGVyKCRhcnJheUNhbXBvcyk7CgkkZGlmID0gYXJyYXlfZGlmZigkYXJyYXlDYW1wb3MsICRmaWx0cm8pOwoKCXJldHVybiBjb3VudCgkZGlmKSA9PT0gMCA/IGZhbHNlIDogdHJ1ZTsKfQoKdmFyX2R1bXAocG9zc3VpQ2FtcG9zVmF6aW9zKCRkYWRvc0NvbXBsZXRvcykpOwp2YXJfZHVtcChwb3NzdWlDYW1wb3NWYXppb3MoJGRhZG9zUGFyY2lhaXMpKTs=