/gp-includes/strings.php

Description
Functions
gp_add_slash (line 22)

Adds a slash after the string, while makes sure not to double it

if it already exists

void gp_add_slash ( $string)
  • $string
gp_endswith (line 10)
void gp_endswith ( $haystack,  $needle)
  • $haystack
  • $needle
gp_esc_attr_with_entities (line 61)

Similar to esc_attr(), but double encode entities

void gp_esc_attr_with_entities ( $text)
  • $text
gp_in (line 14)
void gp_in ( $needle,  $haystack)
  • $needle
  • $haystack
gp_sanitize_for_url (line 46)
void gp_sanitize_for_url ( $name)
  • $name
gp_startswith (line 6)

Functions, which make work with strings easier

void gp_startswith ( $haystack,  $needle)
  • $haystack
  • $needle
gp_strlen (line 37)
void gp_strlen ( $str)
  • $str
gp_strtolower (line 27)
void gp_strtolower ( $str)
  • $str

Documentation generated on Mon, 21 May 2012 01:46:12 +0100 by phpDocumentor 1.4.3