pnp_is_camel_case

The Paid Memberships Pro pnp is camel case function.

Description

pnp_is_camel_case( $word ); 

Parameters (1)

0. $word
The word.

Usage

  1. if ( !function_exists( 'pnp_is_camel_case' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/lib/name-parser.php'; 
  3.  
  4. // The word. 
  5. $word = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = pnp_is_camel_case($word); 
  9.  

Defined (1)

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

/includes/lib/name-parser.php  
  1. function pnp_is_camel_case($word) { 
  2. if (preg_match("|[A-Z]+|s", $word) && preg_match("|[a-z]+|s", $word)) 
  3. return true; 
  4. return false;