it's possible to pass a variable number of parameters to a function

  $num = func_num_args();
  for ($i = 1; $i < $num; $i++)
    $arg = func_get_arg($i);

try looking at these...

-----Original Message-----
From: Chris Hall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 1:48 PM
Subject: [PHP] functions...

function lala() {

do i HAVE to define a variable or argument <eg>

function lala($var) {

or can i use it like:


will $stmt become part of the function?

Chris Hall
hardwired industries

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to