str_ireplace

Supported Versions: PHP 5, PHP 7, PHP 8
Case-insensitive version of str_replace()
str_ireplace(¬†¬†¬†¬†array|string $search,¬†¬†¬†¬†array|string $replace,¬†¬†¬†¬†string|array $subject,¬†¬†¬†¬†int &$count null): string|array
        }



        
$errorsInJson $isMultiple

            
str_ireplace('files'$name$errorsInJson)

            : 
str_ireplace('files.0'$name$errorsInJson);



        
$errors json_decode($errorsInJsontrue)['errors'];
        $errorsInJson $isMultiple

            
str_ireplace('files'$name$errorsInJson)

            : 
str_ireplace('files.0'$name$errorsInJson);



        
$errors json_decode($errorsInJsontrue)['errors'];
    {

        
$subject $caseSensitive

                    
str_replace($search''$subject)

                    : 
str_ireplace($search''$subject);



        return 
$subject;

    }
        foreach ($segments as $segment) {

            if (
is_numeric($segment)) {

                if (
$numericIndex === 1) {

                    
$message str_ireplace(':'.$placeholder$modifier((int) $segment), $message);

                }



                
$message str_ireplace(
                    $message str_ireplace(':'.$placeholder$modifier((int) $segment), $message);

                }



                
$message str_ireplace(

                    
':'.$this->numberToIndexOrPositionWord($numericIndex).'-'.$placeholder,

                    
$modifier((int) $segment),

                    
$message

                
);



                
$numericIndex++;

            }