Function __global->substr_count

Definitions

sources_custom/phpstub.php

  • Count the number of substring occurrences.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: int

Parameters

Name Type Default Set Range Description
$haystack string required parameter N/A N/A The subject
$needle string required parameter N/A N/A The substring to search for in the subject
$offset integer 0 N/A N/A Offset
$maxlen ?integer Null N/A N/A Maximum length (null: no limit)

Return

  • The number of times substring occurs in the subject
  • Type: integer
  • Set: N/A
  • Range: N/A