Home > PHP > Function > Hyperwave > hw_objrec2array()

hw_objrec2array()

hw_objrec2array - Convert attributes from object record to object array

Syntax

array hw_objrec2array (string $object_record, array $format)

Arguments

  • object_record - The object record.
  • format - An associative array with the attribute name as its key and the value being one of HW_ATTR_LANGor HW_ATTR_NONE.

Description

Converts an object_record into an object array.

Version

PHP 4

Return value

Returns an array. The keys of the resulting array are the attributes names. Multi-value attributes like 'Title' in different languages form its own array. The keys of this array are the left part to the colon of the attribute value. This left part must be two characters long.