Re: [PHP] What's more effecient: var on every page or simple function?

2001-05-15 Thread Zef Hemel
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

Re: [PHP] still not friends with RegExps..

2001-05-15 Thread Zef Hemel
$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

Re: [PHP] PHP's OO is bad?

2001-05-14 Thread Zef Hemel
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