Mega Code Archive

 
Categories / Php / Strings
 

Finding a substring with strpos()

<?php if (strpos($_POST['email'], '@') === false) {     print 'There was no @ in the e-mail address!';  } ?>