note 61583 added to function.ldap-get-entries

From: Date: Tue, 07 Feb 2006 09:13:17 +0000
Subject: note 61583 added to function.ldap-get-entries
Groups: php.notes 
Request: Send a blank email to php-notes+get-103167@lists.php.net to get a copy of this message
Helmuts programming example is incorrect. PHP arrays start from zero, so your first entry is $entry[0] and your last entry is $entry[$entry["count"] - 1]. $entry[$entry["count"]] will never exist, thus his usage of is_null. Helmuts usage of is_null is not elegant, its just poor understanding of arrays. Save some confusion and remove Helmuts entry and this one. ---- Server IP: 203.202.10.60 Probable Submitter: 203.147.141.1 (proxied: 192.168.21.5) ---- Manual Page -- http://www.php.net/manual/en/function.ldap-get-entries.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61583 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61583&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61583&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61583&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61583&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61583&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61583&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61583&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61583&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#103167) next »