| 
 Posted by Kimmo Laine on 02/06/07 09:34 
"Gunnar G" <debian@comhem.se> wrote in message  
news:LmXxh.31301$E02.12903@newsb.telia.net... 
> ... but moving the include line to this 
> 
> class a 
> { 
>        include("page.php"); 
>        function foo($x){return $x+1;} 
> } 
> 
> class b 
> { 
>        function foo($x){return $x+1;} 
> } 
> 
> and it no longer works. 
 
 
I'm guessing page.php defines another function named foo. In this case, just  
take the extra foo from class a and throw it out the window. If you include  
it from page.php, you don't need top redefine it... doi! 
 
--  
"Ohjelmoija  on  organismi  joka  muuttaa  kofeiinia  koodiksi" - lpk 
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis 
spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)
 
  
Navigation:
[Reply to this message] 
 |