SetItemValue() public method

public SetItemValue ( IntStringKey key, PhpValue value ) : void
key IntStringKey
value PhpValue
return void
            /// <summary>
            /// Adds variables from one auto-global array to another.
            /// </summary>
            /// <param name="dst">The target array.</param>
            /// <param name="src">The source array.</param>
            /// <remarks>Variable values are deeply copied.</remarks>
            public static void AddVariables(PhpArray /*!*/ dst, PhpArray /*!*/ src)
            {
                Debug.Assert(dst != null && src != null);

                var e = src.GetFastEnumerator();

                while (e.MoveNext())
                {
                    dst.SetItemValue(e.CurrentKey, e.CurrentValue.DeepCopy());
                }
            }