예제 #1
0
            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);
            }
예제 #2
0
 public override PhpValue GetArrayItem(ref PhpValue me, PhpValue index, bool quiet) => PhpValue.Create(Operators.GetItemValue(me.String, index, quiet));
예제 #3
0
 public override PhpValue GetArrayItem(ref PhpValue me, IntStringKey key, bool quiet) => PhpValue.Create(Operators.GetItemValue(me.String, key));