Skip to content
Ryzom Core Wiki edited this page Jul 8, 2024 · 2 revisions

title: Strlen description: published: true date: 2023-03-16T23:12:17.031Z tags: editor: markdown dateCreated: 2023-03-16T22:30:18.910Z

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.

Clone this wiki locally