[PHP] Dynamic Corners GD Image library

2001-02-25 Thread sam1600
Hi, This is probably a no brainer for the math wizards out there. Can anyone see how the folowing code ( originally posted on phpbuilder titled "RE: dynamic corners" as a responce to Rasmus's article on image creation with php & GD : http://www.phpbuilder.com/annotate/message.php3?id=1003041 ) c

Re: Re[2]: [PHP] declaring variables in class definitions

2001-01-10 Thread sam1600
Hi Toby, >This isn't really aesthetics as much as it is organization. >You already know that you don't have to declare PHP >variables... if I had a one-line script that simply said: > >I would end up with 1 as the output. myVar would be created >as soon as PHP encountered it (it would be empty,

Re: Re[2]: [PHP] declaring variables in class definitions

2001-01-10 Thread sam1600
Max, Thanks for your response. Assigning something to $d->somevar when it is not declared in the definition works fine. As far as I can tell, and from what we have found here, there is absolutly no reason whatsoever to define variables in class definitions. If someone can show me me a reason

Re: [PHP] declaring variables in class definitions

2001-01-10 Thread sam1600
Hi Max! --- you wrote: > Hello sam1600, > > Wednesday, January 10, 2001, 6:42:58 AM, you wrote: > > sic> What in the world is reason for declaring the following in the class?: > sic> var $somevar; > sic> I see no reason, and no differences if I don't decl

[PHP] declaring variables in class definitions

2001-01-09 Thread sam1600
Hello, class a { var $somevar; function b(){ if (!isset($this->somevar)) echo "Not set"; if (empty($this->somevar)) echo "empty"; } } $d = new a; $d->b(); The above returns: Not set empty What in the world is reason for declaring the following in th