On Wed, May 19, 2010 at 8:43 AM, Christian Schneider
wrote:
> If you want to have multiple dynamic arguments to pass on like this I'd
> suggest you use one associative array as parameter instead.
>
> Like
>function a($p = array()) { ... }
>function aa($p = array()) { a($p); }
>
Mathias Grimm wrote:
> call_user_func_array('a',func_get_args());// a(pervade();
Two things:
a) There is a way of doing it and although it is a bit cryptic I find it
appropriate since I don't consider this something which should be done
in regular code.
b) pervade() could not be a normal functio
php test source:
insert(new SonType(),1,2,3);
php test result:
TEST 1
1 2 3
TEST 2
Array
(
[0] => SonType Object
(
)
[1] => 1
[2] => 2
[3] => 3
)
On Tue, May 18, 2010 at 8:50 PM, Mathias Grimm wrote:
> ok, sorry!
> the name isn't important at this moment,can b
ok, sorry!
the name isn't important at this moment,can be anyone, can be pervade for
example.
i'm suggesting new feature, the name can be decided later
On Tue, May 18, 2010 at 8:13 PM, Stas Malyshev wrote:
> We already have function with this name: http://us.php.net/passthru
>
> --
> Stanislav
Hi!
i suggest the passthru functionality to pass parameter to other method
without typing all parameters,like call_user_func_array.
foo(passthru()); = call_user_func_array('foo', func_get_args());
We already have function with this name: http://us.php.net/passthru
--
Stanislav Malyshev, Soft
i suggest the passthru functionality to pass parameter to other method
without typing all parameters,like call_user_func_array.
foo(passthru()); = call_user_func_array('foo', func_get_args());
// case 1:
function a($a,$b,$c)
{
//...
}
function aa()
{
a(passthru()); // like call_user_func_array
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 05/14/2010 04:14 PM, Mathias Grimm wrote:
> make php more productive is always good.
Sure. But your proposal introduces a couple of new ways to accomplish
what you can already do today. Judging from my own (limited) experience,
the more ways to do
2010/5/14 Johannes Schlüter
> > > require
> > (
> > 'utila.php',
> > 'utilb.php',
> > 'utilc.php',
> > )
>
> What's te benefit, other than saving a few chars on the cost of being
> more explicit. I don't see any benefit.
>
make php more productive is always good.
>
> Doing this w