Re: how do i work with an "object"

From: Date: Thu, 03 Jul 2003 19:31:54 +0000
Subject: Re: how do i work with an "object"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153919@lists.php.net to get a copy of this message
greg brant wrote:
imap_headder info returns an "object". print_r works to see all the stuff containd within but when i try to acces it via print object[date]; i get naff all
You need to assign the object to a variable first. There are some examples in the user contributed notes in the manual, but essentially something like this: $header = imap_header($foo, $bar); print $header->date; http://us4.php.net/manual/en/function.imap-headerinfo.php Brad

« previous php.general (#153919) next »