strlen - ryzom/ryzomcore GitHub Wiki


title: Strlen description: published: true date: 2023-03-14T03:42:54.610Z tags: editor: markdown dateCreated: 2023-03-14T03:42:54.610Z

strlen

The strlen function is used to get the length of a given string.

Syntax

(length: f)strlen(string: s); // strlen_s_f

Arguments

  • string (string): The input string.

Return Value

  • length (float): The length of the input string.

Example

(length)strlen($str);

This code gets the length of the string stored in the $str variable.

⚠️ **GitHub.com Fallback** ⚠️