Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

if name value contains space in php

if ($str == trim($str) && strpos($str, ' ') !== false) {
    echo 'has spaces, but not at beginning or end';
}
 
PREVIOUS NEXT
Tagged: #space #php
ADD COMMENT
Topic
Name
9+6 =