note 107070 modified in function.strpbrk by danbrown

From: Date: Fri, 06 Jan 2012 19:18:12 +0000
Subject: note 107070 modified in function.strpbrk by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-185415@lists.php.net to get a copy of this message
Simple code to define symbol (@) in the string <?php $name = "username@example.com"; if (strpbrk($name, '@') != FALSE) { echo "There is @"; } else { echo "There isn't @"; } ?> --was-- Simple code to define symbol (@) in the string <?php $name = "username@mail.com"; if (strpbrk($name, '@') != FALSE) { echo "There is @"; } else { echo "There isn't @"; } ?> http://php.net/manual/en/function.strpbrk.php

« previous php.notes (#185415) next »