/// <summary> /// Creates an instance of <see cref="PhpArray"/> filled by given values. /// </summary> /// <param name="values">Values to be added to the new instance. /// Keys will correspond order of values in the array.</param> public static PhpArray New(params PhpValue[] values) { var result = new PhpArray(values.Length); for (int i = 0; i < values.Length; i++) { result.AddToEnd(values[i]); } return(result); }