:: Anbieterverzeichnis :: Globale Branchen
:: SELFPHP Forum ::
Fragen rund um die Themen PHP?
In ?ber
130.000 Beitr?gen finden Sie sicher die passende
Antwort! 
:: Newsletter ::
Abonnieren Sie hier den kostenlosen
SELFPHP Newsletter!
|
|
key  |
|
Befehl | Version | Beschreibung | Beispiel 1 | Ausgabe 1 | Beispiel 2 | Ausgabe 2 | Download |
SELFPHP ist Shopware Solution Partner
Shopware ist ein vielfach ausgezeichnetes Onlineshop-System der shopware AG, das auf PHP. Zend Framework und SQL basiert.
SELFPHP unterstützt Sie als Shopware Solution Partner bei der Konzeption, Programmierung und Realisierung Ihres Onlineshops und passt Shopware bei Bedarf an Ihre Unternehmensbedürfnisse an.
Weitere Informationen
Befehl
mixed key ( array &$array ) |
Version
Beschreibung
Warning: include_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/html/_includeSELFPHP/funktionsreferenz.inc.php on line 405
Warning: include_once(http://geoserver.selfphp.com/million-dollar.php?remote_address=172.17.0.1): failed to open stream: no suitable wrapper could be found in /var/www/html/_includeSELFPHP/funktionsreferenz.inc.php on line 405
Warning: include_once(): Failed opening 'http://geoserver.selfphp.com/million-dollar.php?remote_address=172.17.0.1' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/_includeSELFPHP/funktionsreferenz.inc.php on line 405
Die Funktion key() liefert den Schlüssel des aktuellen Elements innerhalb des Arrays array.
Ist das Array kein Assoziativarray, wird die ID des aktuellen Elements zurückgegeben (0,1,2,3,4,.....,n ).
Siehe auch:
• current()
• next() |
Beispiel 1
<?PHP
$array = array ( 'Script1' => 'PHP', 'Script2' => 'ASP' );
for ( $x = 0; $x < sizeof ( $array ); $x++ )
{
echo key ( $array ) . ' : ' . current ( $array ) . "\n";
next ( $array );
}
?>
|
Ausgabe 1
Script1 : PHP
Script2 : ASP
|
Beispiel 2
<?PHP
$array = array ( 'PHP', 'ASP', 'Perl' );
for ( $x = 0; $x < sizeof ( $array ); $x++ )
{
echo key ( $array ) . ' : ' . current ( $array ) . "\n";
next ( $array );
}
?>
|
Ausgabe 2
|
|
|
|
|


Ausgewählter Tipp im Bereich PHP-Skripte
FlatFile Based Login System
Weitere interessante Beispiele aus dem SELFPHP Kochbuch finden Sie im Bereich PHP-Skripte
|