suche nach in der

ArrayObject::offsetGet> <ArrayObject::natsort
Last updated: Fri, 11 May 2012

view this page in

ArrayObject::offsetExists

(PHP 5 >= 5.0.0)

ArrayObject::offsetExistsReturns whether the requested index exists

Beschreibung

public bool ArrayObject::offsetExists ( mixed $index )

Parameter-Liste

index

The index being checked.

Rückgabewerte

TRUE if the requested index exists, otherwise FALSE

Beispiele

Beispiel #1 ArrayObject::offsetExists() example

<?php
$arrayobj 
= new ArrayObject(array('zero''one''example'=>'e.g.'));
var_dump($arrayobj->offsetExists(1));
var_dump($arrayobj->offsetExists('example'));
var_dump($arrayobj->offsetExists('notfound'));
?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

bool(true)
bool(true)
bool(false)



add a note add a note User Contributed Notes
ArrayObject::offsetExists
There are no user contributed notes for this page.

ArrayObject::offsetGet> <ArrayObject::natsort
Last updated: Fri, 11 May 2012