public override PhpArray ToArray(ref PhpValue me) => PhpArray.New(me);
public override PhpArray ToArray(ref PhpValue me) => PhpArray.New(me.DeepCopy());
public PhpArray ToArray() => PhpArray.New(ToPhpValue());
public static PhpArray ToArray(double value) => PhpArray.New(value);
public static PhpArray ToArray(bool value) => PhpArray.New(value);
public static PhpArray ToArray(long value) => PhpArray.New(value);
public PhpArray ToArray() => PhpArray.New(PhpValue.Create(this.DeepCopy()));
/// <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) });
PhpArray IPhpConvertible.ToArray() => PhpArray.New(PhpValue.FromClass(this));
public PhpArray ToArray() => PhpArray.New(PhpValue.Create(this));