Bug #11040 Updated: Array does not return class from get_class()
| From: | sniper@php.net | Date: | Tue, 22 May 2001 21:17:34 +0000 |
| Subject: | Bug #11040 Updated: Array does not return class from get_class() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56358@lists.php.net to get a copy of this message | ||
ID: 11040
Updated by: sniper
Reported By: geneva1999@yahoo.com
Old-Status: Open
Status: Bogus
Bug Type: *Function Specific
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
array != object
http://www.php.net/manual/en/function.get-class.php
Previous Comments:
---------------------------------------------------------------------------
[2001-05-22 23:15:40] geneva1999@yahoo.com
$arr = Array();
$arr[0] = 5;
$arr[1] = 3;
$cl = get_class($arr);
if($cl == "") print "error: get_class returned nothing";
// the if statment is true, and error is printed.
// I tried this on a Linux 2.2 server and $cl = "Array"
// BUT: If you do this:"
print $arr;
// "Array" will display in the browser.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11040&edit=2