if(strpos($string, ' ') === false) { // space found }
if you don't want any white character: if(ereg('\s',$string)) { // white character found }
shaun wrote:
Hi,
How can i make sure a value sent from a form has no spaces in it?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php