CXLIX. Funktionen zur Behandlung von Variablen

Einführung

Wie sich Variablen verhalten, können Sie im Abschnitt über Variablen in der Sprachreferenz des Handbuchs nachlesen.

Anforderungen

Diese Erweiterung benötigt keine externen Bibliotheken.

Installation

Für diese Funktionen ist keine Installation erforderlich, diese gehören zum Grundbestand von PHP.

Laufzeit Konfiguration

Das Verhalten dieser Funktionen wird durch Einstellungen in der php.ini beeinflusst.

Tabelle 1. Variables Configuration Options

NameDefaultChangeableChangelog
unserialize_callback_funcNULLPHP_INI_ALLAvailable since PHP 4.2.0.
For further details and definitions of the PHP_INI_* constants, see the Anhang G.

Hier eine kurze Erklärung der Konfigurationsoptionen:

unserialize_callback_func string

The unserialize() callback function will called (with the undefined class' name as parameter), if the unserializer finds an undefined class which should be instanciated. A warning appears if the specified function is not defined, or if the function doesn't include/implement the missing class. So only set this entry, if you really want to implement such a callback-function.

See also unserialize().

Resource Typen

Diese Erweiterung definiert keine Resource-Typen.

Vordefinierte Konstanten

Diese Erweiterung definiert keine Konstanten.

Inhaltsverzeichnis
debug_zval_dump -- Dumps a string representation of an internal zend value to output
doubleval -- Konvertiert einen Wert nach double
empty -- Prüft, ob eine Variable einen Wert enthält
floatval -- Get float value of a variable
get_defined_vars --  Returns an array of all defined variables
get_resource_type --  Returns the resource type
gettype -- Liefert den Datentyp einer Variablen
import_request_variables -- Import GET/POST/Cookie variables into the global scope
intval -- Konvertiert einen Wert nach integer
is_array -- Prüft, ob Variable ein Array ist
is_bool --  Prüft, ob eine Variable vom Typ bool ist
is_callable --  Verify that the contents of a variable can be called as a function
is_double -- Prüft, ob eine Variable vom Typ double ist
is_float -- Prüft, ob eine Variable vom Typ float ist
is_int -- Prüft, ob eine Variable vom Typ int ist
is_integer -- Prüft, ob eine Variable vom Typ integer ist
is_long -- Prüft, ob eine Variable vom Typ long ist
is_null --  Finds whether a variable is NULL
is_numeric --  Finds whether a variable is a number or a numeric string
is_object -- Prüft, ob eine Variable vom Typ object ist
is_real -- Prüft, ob Variable vom Typ real ist
is_resource --  Prüft, ob eine Variable vom Typ resource ist
is_scalar --  Finds whether a variable is a scalar
is_string -- Prüft, ob Variable vom Typ string ist
isset -- Prüft die Existenz einer Variablen
print_r --  Gibt Variablen-Informationen in lesbarer Form aus
serialize --  Erzeugt ein speicherbares Datenformat
settype -- Legt den Typ einer Variablen fest
strval -- Konvertierung zum String
unserialize --  Erzeugt aus einem gespeicherten Datenformat einen Wert in PHP
unset -- Löschen einer Variablen
var_dump -- Gibt alle Informationen zu einer Variablen aus
var_export -- Outputs or returns a parsable string representation of a variable