Skip to content

Instantly share code, notes, and snippets.

@warisali2
warisali2 / validateEmpty.php
Last active March 16, 2018 09:59
validateEmpty php funciton
function validateEmpty($var, $msg) {
if($var == "")
{
echo '<div class="alert alert-danger">'
echo '<strong>Error!</strong>' . $msg;
echo '</div>'
}
}