Finding a substring with strpos() : strrpos « String « PHP
- PHP
- String
- strrpos
Finding a substring with strpos()
<?php
if (strpos($_POST['email'], '@') === false) {
print 'There was no @ in the e-mail address!';
}
?>
Related examples in the same category