wc_strtolower

Make a string lowercase.

Description

(string) wc_strtolower( (string) $string ); 

Try to use mb_strtolower() when available.

Returns (string)

Parameters (1)

0. $string (string)
The string.

Usage

  1. if ( !function_exists( 'wc_strtolower' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-formatting-functions.php'; 
  3.  
  4. // The string. 
  5. $string = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wc_strtolower($string); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-formatting-functions.php  
  1. function wc_strtolower( $string ) { 
  2. return function_exists( 'mb_strtolower' ) ? mb_strtolower( $string ) : strtolower( $string );