On Tuesday 04 March 2003 18:24, Christian Bartels wrote:
> Ok, but how do i pass the vars to the second function (foo2)?
> There is not a fixed number of parameters (and so fields in the $params
> array).
You can do something along these lines:
function doo($args) {
// these are the default va
Hi,
Tuesday, March 4, 2003, 8:53:25 PM, you wrote:
CB> Mh...i need this for a class loader.
CB> Could you post your class loader? (i do not want to invent the wheel again)
CB> Thanks!
This works for me to load modules in a base class so adapt it as you
need.
class_dir = $class_dir;
}
Mh...this works great!
Thanks a lot!
---
Gruß
CB
-Ursprüngliche Nachricht-
Von: Tom Rogers [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 4. März 2003 11:49
An: Christian Bartels
Cc: [EMAIL PROTECTED]
Betreff: Re: [PHP] How to use the fields of an array as individual parameter
for a
]
Betreff: Re: [PHP] How to use the fields of an array as individual parameter
for a function
Hi,
Tuesday, March 4, 2003, 7:52:26 PM, you wrote:
CB> Hello!
CB> I'm new here on the list. I hope you can help me! :)
CB> I have a function foo1 which has a parameter $params. In the
CB>
Hi,
Tuesday, March 4, 2003, 7:52:26 PM, you wrote:
CB> Hello!
CB> I'm new here on the list. I hope you can help me! :)
CB> I have a function foo1 which has a parameter $params. In the function i want
CB> to pass $params to another function foo2. if $params is an array the
CB> elements should be
]
Betreff: Re: [PHP] How to use the fields of an array as individual parameter
for a function
there are all sorts of ways to get elements out of arrays. here's one:
if i don't know how many elements are in the array:
$numinarray = count($array); //gives me the number of elements in
Hello!
I'm new here on the list. I hope you can help me! :)
I have a function foo1 which has a parameter $params. In the function i want
to pass $params to another function foo2. if $params is an array the
elements should be passed to foo2 as individual parameters. Is this
possible? How do i do t
7 matches
Mail list logo