Function __global->strncasecmp

Definitions

sources_custom/phpstub.php

  • Binary safe case-insensitive string comparison of the first n characters.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$str1 string No No required parameter N/A N/A The first string
$str2 string No No required parameter N/A N/A The second string
$len integer No No required parameter N/A N/A Up to this length (n)

Returns

  • <0 if s1<s2, 0 if s1=s2, >1 if s1>s2
  • Type: integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Binary safe case-insensitive string comparison of the first n characters.
 *
 * @param  string $str1 The first string
 * @param  string $str2 The second string
 * @param  integer $len Up to this length (n)
 * @return integer <0 if s1<s2, 0 if s1=s2, >1 if s1>s2
 */

function strncasecmp(string $str1, string $str2, int $len) : int