RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread PHPBeginner.com
-Original Message- From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 3:27 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variable (naming them) Functions. Variable functions? http://localhost/some_script.php?fname=foo prints "this is foo"; http://localhost/some_

Re: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Philip Olson
for point of reference regarding this thread : http://www.php.net/manual/en/functions.variable-functions.php regards, philip On Sat, 28 Apr 2001, Yasuo Ohgaki wrote: > Variable functions? > > foo () { > echo 'this is foo'; > } > > bar () { > echo 'this is bar'; > } > > $var = $HTT

Re: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Yasuo Ohgaki
Variable functions? http://localhost/some_script.php?fname=foo prints "this is foo"; http://localhost/some_script.php?fname=bar print "this is bar" Regards, -- Yasuo Ohgaki "Maxim Maletsky" <[EMAIL PROTECTED]> wrote in message DC017B079D81D411998C009027B7112A015ED16A@EXC-TYO-01">news:DC01

RE: [PHP] Variable (naming them) Functions. DONE! DONE! DONE!

2001-04-27 Thread PHPBeginner.com
and Oliver in particular! Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Christian Reiniger [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 2:48 AM To: [EMAIL PROTECTED]

Re: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Christian Reiniger
On Friday 27 April 2001 17:08, PHPBeginner.com wrote: > no classes CAN'T solve my problem: > > it is an abstraction layer. called as func_hello(); I want, inside > func_hello() {} declare a new function based on what happened before > func_hello() was called. In other words: I of course though abo

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Johnson, Kirk
001 10:27 AM > To: Johnson, Kirk; 'PHP General List. (E-mail)' > Subject: RE: [PHP] Variable (naming them) Functions. > > > create_function seems not letting you choosing it's name. > > am I right, or there's a way to say: > create_function($name.$t

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread PHPBeginner.com
ginner.com -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 1:03 AM To: 'PHP General List. (E-mail)' Subject: RE: [PHP] Variable (naming them) Functions. Did you see create_function()? Not sure if this is what you are after, but http://w

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Johnson, Kirk
Did you see create_function()? Not sure if this is what you are after, but http://www.php.net/manual/en/function.create-function.php Kirk > -Original Message- > From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] > Subject: [PHP] Variable (naming them) Functions. > >

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread PHPBeginner.com
: SED [mailto:[EMAIL PROTECTED]] Sent: Friday, April 27, 2001 9:53 PM To: Maxim Maletsky Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Variable (naming them) Functions. Why not use classes? If I understand you problem correctly, I think classes should solve your problem. Right? SED -Original Mess

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread SED
Why not use classes? If I understand you problem correctly, I think classes should solve your problem. Right? SED -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: 27. apríl 2001 11:58 To: 'PHP General List. (E-mail)' Subject: [PHP] Variable (n

[PHP] Variable (naming them) Functions.

2001-04-27 Thread Maxim Maletsky
p. Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Maxim Maletsky Sent: Friday, April 27, 2001 8:58 PM To: 'PHP General List. (E-mail)' Subject: [PHP] Variable (naming them) Functio

[PHP] Variable (naming them) Functions.

2001-04-27 Thread Maxim Maletsky
Hello everyone: I was wondering, does anyone of you know a method to declare a function (give it a name) basing on a value acquired during run time? I tried using the syntax as of a variable function call: $fname = 'hello'; function { sprintf("%s", $fname) }($arg='') { Retu