public static function isId($id) {
	  // check passed data
    if(!is_string($id)) {
	    // bad data passed
	    throw new LinkedInException('LinkedIn->isId(): bad data passed, $id must be of type string.');
	  }
	  
	  $pattern = '/^[a-z0-9_\-]{10}$/i';
	  if($match = preg_match($pattern, $id)) {
	    // we have a match
	    $return_data = TRUE;
	  } else {
	    // no match
	    $return_data = FALSE;
	  }
	  return $return_data;
	}
public static function isId($id) {
	  // check passed data
    if(!is_string($id)) {
	    // bad data passed
	    throw new LinkedInException('LinkedIn->isId(): bad data passed, $id must be of type string.');
	  }
	  
	  $pattern = '/^[a-z0-9_\-]{10}$/i';
	  if($match = preg_match($pattern, $id)) {
	    // we have a match
	    $return_data = TRUE;
	  } else {
	    // no match
	    $return_data = FALSE;
	  }
	  return $return_data;
	}
public static function isId ( $ id ) { // check passed data if ( ! is_string ( $ id ) ) { // bad data passed throw new LinkedInException ( 'LinkedIn->isId(): bad data passed, $id must be of type string.' ) ; } $ pattern = '/^[a-z0-9_\-]{10}$/i' ; if ( $ match = preg_match ( $ pattern , $ id ) ) { // we have a match $ return_data = TRUE ; } else { // no match $ return_data = FALSE ; } return $ return_data ; }
LinkedIn ID validation.

Checks the passed string $id to see if it has a valid LinkedIn ID format,
which is, as of October 15th, 2010:

10 alpha-numeric mixed-case characters, plus underscores and dashes.

@param str $id
A possible LinkedIn ID.

@return bool
TRUE/FALSE depending on valid ID format determination.
LinkedIn ID validation .