Skip to main content

first_inventory

Discworld driver help

first_inventory

Name

first_inventory() - return the first item in an objects inventory

Synopsis

varargs object first_inventory( mixed ob );

Description

Return the first object in the inventory of `ob', where `ob' is either an object or the file name of an object. If `ob' is not specified, this_object() is used.

See also

file_name(), next_inventory(), all_inventory(), deep_inventory()