insert Inserts $substring into the string at the $index provided. Description static insert(string $substring, int $index) Parameters string $substring String to be inserted. int $index The index at which to insert the substring. Return Value static String after the insertion.