HH\idx_readonly

namespace HH;

function idx_readonly<Tk as arraykey, Tv>(
  ?KeyedContainer<Tk, Tv> $collection,
  ?Tk $index,
  $default = NULL,
): Tv;

Parameters

  • ?KeyedContainer<Tk, Tv> $collection
  • ?Tk $index
  • $default = NULL

Returns

  • Tv