I did some benchmark on how fast variable access is when being used through
OOP. And this difference can be up to 1,7 times as slow.
I surely hope you can speed up, right now I'm not using it because it's
slower...
Zef
Phil Driscoll [EMAIL PROTECTED] schreef in berichtnieuws
[EMAIL
I'd say the first one, but if you'd use $myvar as a constant only, try this:
define(MYVAR,3);
Might be even more efficient ;-)
btw. You can call this value like this:
echo MYVAR;
Zef
Noah Spitzer-Williams [EMAIL PROTECTED] schreef in berichtnieuws
9dpjiu$5nu$[EMAIL PROTECTED]
Which of the two
$string = preg_replace(/[\\\*\+\-;]/s,,$string);
I think, you might have to escape the ; too
Zef
elias [EMAIL PROTECTED] schreef in berichtnieuws
9dr733$knl$[EMAIL PROTECTED]
Hello,
Maybe RegExps are still my point of weakness...but I still like them as
much
as I like the Self-Reference
3 matches
Mail list logo