Answers for "check string length is greater than 0 php"

PHP
0

check string length is greater than 0 php

if(strlen(trim($string)) > 0){
   // $string has at least one non-space character
}
Posted by: Guest on July-04-2021

Code answers related to "check string length is greater than 0 php"

Browse Popular Code Answers by Language