Method strlen() Method strlen int strlen(string|multiset|array|mapping|object thing) Description Alias for sizeof. Deprecated Replaced by sizeof.