array or list of objects of different types

From: Date: Fri, 02 Apr 2010 23:52:57 +0000
Subject: array or list of objects of different types
Groups: php.general 
Request: Send a blank email to php-general+get-303761@lists.php.net to get a copy of this message
Hi all, I want to be able to have an array of elements of different types. As an example: the first element is a boolean, the second is an integer, and the thirs is a string. In php there is no typing, i'm just wondering if there is a way to have that, it would be a lot better than having an array of strings and have to convert each element. Thank you __________________________________________________________________ The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/

« previous php.general (#303761) next »