strlen()Returns the number of characters.Syntaxstrlen($text)DescriptionReturns the number of characters in the text.ExampleLoading editor…▶ Try it yourselfExpected output7When to use?Length check (passwords, limits).Related commandssubstr()strtoupper() / strtolower() →