literal strings vs variable strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all.

Is this going to save me anything?

<?php # literal
foreach($items as $item)
   if( 'something' == $item->something() )
         return true;

<?php # variable
$something = 'something';
foreach($items as $item)
   if( $something == $item->something() )
         return true;

-- 
Martin Scotta

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux