iconv_substr

iconv_substr

(PHP 5, PHP 7)

iconv_substrCut out part of a string

Description

string iconv_substr ( string $str , int $offset [, int $length = iconv_strlen($str, $charset) [, string $charset = ini_get("iconv.internal_encoding") ]] )

Cuts a portion of str specified by the offset and length parameters.

Parameters

str

The original string.