FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Value in a grid
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Value in a grid [message #171337 is a reply to message #171335] Thu, 30 December 2010 13:20 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
Thomas 'PointedEars' Lahn wrote:

> This should be rewritten at least as
>
> foreach ($wscalls as $key => $wscall)
> {
> $iddocumento = $wscall['iddocumento'];
> $baseURL = $this->view->baseUrl();

Sorry, I meant

$baseURL = $this->view->baseUrl();

foreach ($wscalls as $key => $wscall)
{
$iddocumento = $wscall['iddocumento'];

// …
}

> […]
> 12. If a method always returns the same value, do not call it more than
> once. Store the return value in a variable once and use the variable
> value instead.

PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: php mail( )
Next Topic: Ignoring Case on directories
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 15:01:08 GMT 2024

Total time taken to generate the page: 0.04137 seconds