New() public static method

Creates an instance of PhpArray filled by given values.
public static New ( ) : PhpArray
return PhpArray
示例#1
0
 public override PhpArray ToArray(ref PhpValue me) => PhpArray.New(me);
示例#2
0
 public override PhpArray ToArray(ref PhpValue me) => PhpArray.New(me.DeepCopy());
示例#3
0
 public PhpArray ToArray() => PhpArray.New(ToPhpValue());
示例#4
0
 public static PhpArray ToArray(double value) => PhpArray.New(value);
示例#5
0
 public static PhpArray ToArray(bool value) => PhpArray.New(value);
示例#6
0
 public static PhpArray ToArray(long value) => PhpArray.New(value);
示例#7
0
 public PhpArray ToArray() => PhpArray.New(PhpValue.Create(this.DeepCopy()));
示例#8
0
 /// <summary>
 /// Binds <see cref="PhpInvokable"/> to <see cref="PhpCallable"/> while wrapping arguments to a single argument of type <see cref="PhpArray"/>.
 /// </summary>
 internal static PhpCallable BindMagicCall(this PhpInvokable invokable, object target, string name)
 => (ctx, arguments) => invokable(ctx, target, new[] { (PhpValue)name, (PhpValue)PhpArray.New(arguments) });
示例#9
0
 PhpArray IPhpConvertible.ToArray() => PhpArray.New(PhpValue.FromClass(this));
示例#10
0
 public PhpArray ToArray() => PhpArray.New(PhpValue.Create(this));