PHP-Fehler #8192: Function utf8_encode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/prime.php;
Zeile: 65
PHP-Fehler #8192: Function utf8_decode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 294
PHP-Fehler #8192: Function utf8_decode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 338
PHP-Fehler #8192: Function utf8_decode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 338
PHP-Fehler #8192: Function utf8_decode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 338
PHP-Fehler #8192: Function utf8_decode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 338
PHP-Fehler #8192: Function utf8_decode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 338
PHP-Fehler #8192: Function utf8_decode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 338
PHP-Fehler #8192: Function utf8_decode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 338
PHP-Fehler #8192: Function utf8_decode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 338
PHP-Fehler #8192: Function utf8_decode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 338
PHP-Fehler #8192: Function utf8_decode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 338
PHP-Fehler #8192: Function utf8_decode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 338
PHP-Fehler #8192: Function utf8_decode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 338
PHP-Fehler #8192: Function utf8_decode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 296
PHP-Fehler #8192: Function utf8_encode() is deprecated;
Datei: /home/floernco/public_html/webscriptingData/inc/functions.php;
Zeile: 297
array_map_recursive() .· PHP, Benutzerfunktion .· Webscripting .· floern.com

array_map_recursive()

September 2009

array_map() kann eine nützliche Funktion sein, doch bei mehrdimensionalen Arrays knallt sie mit dem Kopf gegen die Wand.

Folgende Funktion stellt ein rekursives array_map() dar:
<?php
function array_map_recursive($func$arr){
  
$a = array(); 
  if(
is_array($arr))
    foreach(
$arr as $k => $v)
      
$a[$k] = is_array($v) ? array_map_recursive($func$v) : $func($v);
  return 
$a;
}

# Aufrufen
$neuerArray array_map_recursive($callbackFunktion$meinArray);
?>
Diese Funktion findet zum Beispiel bei der Verarbeitung von $_GET oder $_POST Verwendung, wenn möglicherweise ein Array mit diesen Variablen übertragen wird.

Siehe auch:
 


Andere Einträge