MCPcopy Create free account
hub / github.com/deuill/go-php / value_array_key_get

Function value_array_key_get

engine/value.c:338–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338engine_value *value_array_key_get(engine_value *arr, char *key) {
339 HashTable *h = NULL;
340 engine_value *val = value_new();
341
342 switch (arr->kind) {
343 case KIND_ARRAY:
344 case KIND_MAP:
345 h = Z_ARRVAL_P(arr->internal);
346 break;
347 case KIND_OBJECT:
348 h = Z_OBJPROP_P(arr->internal);
349 break;
350 default:
351 return val;
352 }
353
354 VALUE_ARRAY_KEY_GET(h, key, val);
355}

Callers

nothing calls this directly

Calls 1

value_newFunction · 0.85

Tested by

no test coverage detected