structValueArray

Returns all the values as an array

structValueArray(structure) → returns array

This function requires OpenBD and up.  Not supported on Lucee, Adobe ColdFusion, etc.

structValueArray Argument Reference

structure struct
Required

Examples sample code invoking the structValueArray function

statusCodes = {
    OK = 200,
    CREATED = 201,
    NOT_MODIFIED = 304,
    BAD_REQUEST = 400,
    NOT_FOUND = 404
};

writeDump(structValueArray(statusCodes));

Expected Result: [200, 201, 304, 400, 404]


Fork me on GitHub