monsterinsights_string_starts_with

The Google Analytics for WordPress by MonsterInsights monsterinsights string starts with function.

Description

monsterinsights_string_starts_with( $string, $start ); 

Parameters (2)

0. $string
The string.
1. $start
The start.

Usage

  1. if ( !function_exists( 'monsterinsights_string_starts_with' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/includes/helpers.php'; 
  3.  
  4. // The string. 
  5. $string = null; 
  6.  
  7. // The start. 
  8. $start = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = monsterinsights_string_starts_with($string, $start); 
  12.  

Defined (1)

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

/includes/helpers.php  
  1. function monsterinsights_string_starts_with( $string, $start ) { 
  2. return substr( $string, 0, strlen( $start ) ) === $start;