So sprach »Andrey Hristov« am 2001-12-21 um 17:40:07 +0200 :
> $test='htmlspecialchars';
> echo $test('');
> ?>
>
> Produces :
>
>
Ah, I thought you did disagree. Whatever. I misunderstood you, sorry
about that.
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http:
So sprach »Andrey Hristov« am 2001-12-21 um 15:52:35 +0200 :
> Nope
> $test();
Please explain!
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED]
iso-top.de - Die günstige A
since you CAN'T create functions runtime, unles you are using an eval
expression
but that's even slower that create_function..
function bla() {
}
$test = "bla";
$test();
Is not solving the problem since, it doesn't create a function at RUNTIME it
only references a function..
(it references $tes
>
> > the former version won't work.
> >
> > Bogdan
> >
> > > > > $test='htmlspecialchars';
> > > echo $test('');
> > > ?>
> > >
> > > Produces :
> > >
> > > <html>
> > >
> > &g
Why do you draw the conclusion you're misunderstood? We are unable to answer
your question about speed -- so aren't we allowed to have a separate discussion
derrivated from your question?
Bogdan
Emile Bosch wrote:
> thx for al the help but i need some help of a php developer i guess cuz i am
>
Andrey
> >
> > - Original Message -
> > From: "Alexander Skwar" <[EMAIL PROTECTED]>
> > To: "Andrey Hristov" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Friday, December 21, 2001 5:35 PM
> > Subject: Re: [P
mlspecialchars';
> echo $test('');
> ?>
>
> Produces :
>
> <html>
>
> Regards,
> Andrey
>
> - Original Message -
> From: "Alexander Skwar" <[EMAIL PROTECTED]>
> To: "Andrey Hristov" <[EMAIL
');
?>
Produces :
<html>
Regards,
Andrey
- Original Message -
From: "Alexander Skwar" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 5:35 PM
Subject: Re: [PHP
Nope
$test();
Regards,
Andrey
- Original Message -
From: "Bogdan Stancescu" <[EMAIL PROTECTED]>
To: "Emile Bosch" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 3:43 PM
Subject: Re: [PHP] Question about CREATE_FU
Thank you for you interest,
I need to know this because am building an CMS package..
and create function create functions on the fly which can come in handy very
much..
My questions was wheter create_function the PHP tag, slow is or not... hope
someone can
help me out here..
Warm regards,
Emil
Why do you need this? To my knowledge you get the same behaviour with
Bogdan
Emile Bosch wrote:
> Dear list,
> Does anyone know how the internals of create function works?
>
> $test = create_function('blah','$arg,$arg2',$code);
>
> Does it really create the function in $test; or creates it a
Dear list,
Does anyone know how the internals of create function works?
$test = create_function('blah','$arg,$arg2',$code);
Does it really create the function in $test; or creates it a global function
and references it to $test
And further more,
is it very SLOW?
Warm regards,
Emile Bosch
-
12 matches
Mail list logo