Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

mb_substr()

3 tags 1 category

mb_substr() — Get part of string.

mb_substr() — Performs a multi-byte safe substr operation based on number of characters. Position is counted from the beginning of string. First character’s position is 0. Second character position is 1, and so on.

Inputs: string: The string to extract the substring from. start: If start is non-negative, the returned string will start at the start’th position in string, counting from zero. For instance, in the string ‘abcdef’, the character at position 0 is ‘a’, the character at position 2 is ‘c’, and so forth. If start is negative, the returned string will start at the start’th character from the end of string.

Returns: mb_substr returns the portion of string specified by the start and length parameters.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…