public override PhpValue GetArrayItem(ref PhpValue me, PhpValue index, bool quiet) { var item = Operators.GetItemValue(me.String, index, quiet); if (quiet && string.IsNullOrEmpty(item)) { return(PhpValue.Null); } return((PhpValue)item); }
public override PhpValue GetArrayItem(ref PhpValue me, PhpValue index, bool quiet) => PhpValue.Create(Operators.GetItemValue(me.String, index, quiet));
public override PhpValue GetArrayItem(ref PhpValue me, IntStringKey key, bool quiet) => PhpValue.Create(Operators.GetItemValue(me.String, key));