New() 공개 정적인 메소드

Creates an instance of PhpArray filled by given values.
public static New ( ) : PhpArray
리턴 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));