Oops, an error occurred! Code: XXXX
Ever wondered how to fix this error? First you have to enable the extbase debugger by adding below line to the setup field of your
Home » Archief March 2017
Ever wondered how to fix this error? First you have to enable the extbase debugger by adding below line to the setup field of your
public function image_type_to_extension($imagetype, $include_dot = false) { if (empty($imagetype)) { return false; } if ($include_dot) { $dot = ‘.’; } else { $dot = ”;
public function xml2array($contents, $get_attributes = 0) { if (!$contents) { return array(); } if (!function_exists(‘xml_parser_create’)) { //print “‘xml_parser_create()’ function not found!”; return array(); } //Get
public function url_exists($url) { $handle = curl_init($url); if (false === $handle) { return false; } curl_setopt($handle, CURLOPT_HEADER, false); curl_setopt($handle, CURLOPT_FAILONERROR, true); // this works curl_setopt($handle,
public function normaliza($string) { $normalizeChars = array( ‘Š’ => ‘S’, ‘š’ => ‘s’, ‘Ð’ => ‘Dj’, ‘Ž’ => ‘Z’, ‘ž’ => ‘z’, ‘À’ => ‘A’,
public function str2href($str) { $str = preg_replace(‘/s(w+://)(S+)/’, ‘ <a href=”\1\2″ target=”_blank”>\1\2</a>’, $str); }
public function str_highlight($text, $needle = ”, $options = null, $highlight = null) { $STR_HIGHLIGHT_SIMPLE = 1; $STR_HIGHLIGHT_WHOLEWD = 2; $STR_HIGHLIGHT_CASESENS = 0; $STR_HIGHLIGHT_STRIPLINKS = 8;
? 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 public function array_flatten($a, $f = array()) { if (!$a
function stristr_array($string, $needleArray) { if (!is_array($needleArray)) { return false; } if (is_array($needleArray) && count($needleArray)) { foreach ($needleArray as $needle) { if (stristr($string, $needle)) { return
function natksort(&$array) { $keys = array_keys($array); natcasesort($keys); if (is_array($keys) && count($keys)) { foreach ($keys as $k) { $new_array[$k] = $array[$k]; } } $array = $new_array;