ID: 11040 Updated by: sniper Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] $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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]