You are here

public function mimemail_compress::string_to_lower in Mime Mail 7

Converts a string to lowercase.

This is a helper method for the previous method when it is converting strings to lower case. This is being done this way to support PHP versions from 5.2.4 (the minimum version Druapl 7 supports) to PHP 7.2 (the current version at the time of this writing).

Parameters

array $matches: The results from a call to preg_replace_callback().

Return value

string The original string converted to lowercase.

File

modules/mimemail_compress/mimemail_compress.inc, line 210
Converts CSS styles into inline style attributes.

Class

mimemail_compress
Compresses HTML and CSS into combined message.

Code

public function string_to_lower($matches) {
  return strtolower($matches[0]);
}