structValueArray

Returns all the values as an array

structValueArray(structure) → returns array

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