• Homepage
  • Service
  • Php
  • Functions

Functions

PHP functions

List of PHP functions added by eKansio.

Methods

  • Array

  • array_overlay($a1,$a2)
    Map multidimensional arrays together
  • is_associative_array($arr)
    Is array with string keys
  • is_indexed_array($arr)
    Is array with int keys
  • utf8json($a)
    Convert array to json
  • Debug

  • loki($title,$variable)
    Write variable to log file
  • p($title,$variable)
    Print variable to screen
  • Misc

  • isTrue($value)
    Check if value considered to be true
  • String

  • isIn($needle,$haystack[,$haytack...])
    Check if needle is found in haystack
  • pienetKirjaimet($string)
    To lower case
  • startsWith($needle,$haystack)
    Check if haystack starts with given needle
  • isotKirjaimet($string)
    To upper case
  • parseNumber($teksti)
    Take numbers from string
  • parseNumbers($text)
    Take phone number from string
  • parseTxt($string)
    Remove special char
  • isotAlkukirjaimet($string[,$all])
    To upper initials
  • decode_UTF8($var)
    Convert from UTF8 to ISO
  • encode_UTF8($var)
    Convert from ISO to UTF8