if name value contains space in php

Solutions on MaxInterview for if name value contains space in php by the best coders in the world

showing results for - "if name value contains space in php"
Alina
16 Jan 2017
1if ($str == trim($str) && strpos($str, ' ') !== false) {
2    echo 'has spaces, but not at beginning or end';
3}