PHP Resources
Home
Books
Directories
Magazines
Non-English Sites
Online Communities
Tools
Tutorials and Articles
Web Hosting
PHP Functions
PHP News Groups *
PHP Reference
Smarty Reference
Pear Reference
PHP-GTK Reference

By submitting PHP Resources you own, or know of, you'll help us build the largest PHP Resource website on the net. Please double check that your resource doesn't already exist before you submit it!!. We thank you for helping make this a better website.









Resource Image Newest ResourcesPopular ResourcesTop Resources Resource Image
PHP Resources
PHP: ArrayObject::offsetExists - Manual

search for in the

ArrayObject::offsetGet> <ArrayObject::getIterator
Last updated: Fri, 16 May 2008

view this page in

ArrayObject::offsetExists

(PHP 5)

ArrayObject::offsetExists — Returns whether the requested $index exists

Description

bool ArrayObject::offsetExists ( mixed $index )
Warning

This function is currently not documented; only its argument list is available.

Parameters

index

The index being checked.

Return Values

TRUE if the requested $index exists, otherwise FALSE



add a note add a note User Contributed Notes
ArrayObject::offsetExists
goran at extensionsforjoomla dot com
09-Jul-2007 06:52
In versions prior to PHP 5.2.2 offsetExists() would return false if index value is null.
<?php
// running PHP 5.2.1
$params = new ArrayObject(array('INT'=>null, 'STR'=> null, 'BOOL'=>null, 'LOB'=>null));
$test = $params->offsetExists('INT');
var_dump($test);
// result would be bool(false)
// running PHP 5.2.2
$params = new ArrayObject(array('INT'=>null, 'STR'=> null, 'BOOL'=>null, 'LOB'=>null));
$test = $params->offsetExists('INT');
var_dump($test);
// result would be bool(true)
?>
Both tests where made on Windows platform.

ArrayObject::offsetGet> <ArrayObject::getIterator
Last updated: Fri, 16 May 2008
 
 




Featured




Featured
PHP Code Examples
web site templates
Learn PHP playing Trivia
PHP & MySQL Forums
Web Development Index

List Your ResourceUpdate Your Resource

Copyright © 2006 - 2008 MickMel Inc