Re: [PHP] checking the return value of member function with empty

2003-08-14 Thread Justin French
Count the number of ('s and )'s, or get a text editor which can help you balance them out in some way: 1 2 3 321 if (!empty($this-GetParam('someparameter'))) { // foo } This *SHOULD* be syntactically correct, but php doesn't think so. Should I

[PHP] checking the return value of member function with empty

2003-08-14 Thread Edward Rudd
I am having this rather annoying syntax problem. I have this.. if (!empty($this-GetParam('someparameter')) { // OK do something since the parameter is set. } However that fails with this parse error parse error, expecting `')'' Why??? If I do this $var = $this-GetParam('someparameter')); if

Re: [PHP] checking the return value of member function with empty

2003-08-09 Thread andu
On Sat, 09 Aug 2003 20:00:57 -0500 Edward Rudd [EMAIL PROTECTED] wrote: I am having this rather annoying syntax problem. I have this.. if (!empty($this-GetParam('someparameter')) { // OK do something since the parameter is set. } if (!empty($this-GetParam('someparameter'))) { // OK