Overview

Namespaces

  • pgn
    • exceptions
    • tags
  • utils

Classes

  • Parser
  • String

Exceptions

  • ParserException
  • Overview
  • Namespace
  • Class

Class String

Description of String

Namespace: utils
Author: geraldo
Located at utils/String.php
Methods summary
public static boolean
# startsWith( string $haystack, string $needle )

Search backwards starting from haystack length characters from the end

Search backwards starting from haystack length characters from the end

Parameters

$haystack
$needle

Returns

boolean

Link

font.

Assert("",

"abcdef") == false

Assert("abcdef",

"cd") == false
"ef") == false
"") == true
public static boolean
# endsWith( string $haystack, string $needle )

Search forward starting from end minus needle length characters

Search forward starting from end minus needle length characters

Parameters

$haystack
$needle

Returns

boolean

Link

font.

Assert("",

"abcdef") == false

Assert("abcdef",

"ab") == false
"cd") == false
"ef") == true
"") == true
API documentation generated by ApiGen