<form action=demo.php method="post">
<div >
<label class="control-label" for="email">Your email address/Mobile number</label>
<div class="controls">
<input type="email" name="email" required />
</div>
</div>
<input type="submit" name="submit">Submit</button>
</form>
I want to validate Email or Mobile via PHP validation with preg with single input and Mobile starts only 7,8 & 9 and only should be 10 digit. How can i validate this only in PHP.