variable question
| From: | Michael Zornek | Date: | Fri, 19 Jan 2001 22:15:25 +0000 |
| Subject: | variable question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-35738@lists.php.net to get a copy of this message | ||
ok so i have an object that has (among other things) the following properties:
$vendor_data->s9
$vendor_data->s10
$vendor_data->s11
$vendor_data->s12
...
$vendor_data->s40
The values are 1 or 0
I'd like to write a loop to say:
for ($count=9; $count>40; $count++) {
if ($vendor_data->s(insert_number_here) == 1) {
echo something;
}
}
any thoughts?
Mike