find part of string and return length php code example Example: find string lenght in php Use the PHP strlen() function