New() public static method

Creates an instance of PhpArray filled by given values.
public static New ( ) : PhpArray
return PhpArray
Exemplo n.º 1
0
 public override PhpArray ToArray(ref PhpValue me) => PhpArray.New(me);
Exemplo n.º 2
0
 public override PhpArray ToArray(ref PhpValue me) => PhpArray.New(me.DeepCopy());
Exemplo n.º 3
0
 public PhpArray ToArray() => PhpArray.New(ToPhpValue());
Exemplo n.º 4
0
 public static PhpArray ToArray(double value) => PhpArray.New(value);
Exemplo n.º 5
0
 public static PhpArray ToArray(bool value) => PhpArray.New(value);
Exemplo n.º 6
0
 public static PhpArray ToArray(long value) => PhpArray.New(value);
Exemplo n.º 7
0
 public PhpArray ToArray() => PhpArray.New(PhpValue.Create(this.DeepCopy()));
Exemplo n.º 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) });
Exemplo n.º 9
0
 PhpArray IPhpConvertible.ToArray() => PhpArray.New(PhpValue.FromClass(this));
Exemplo n.º 10
0
 public PhpArray ToArray() => PhpArray.New(PhpValue.Create(this));