boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

overwriting a function?

 
Post new topic   Reply to topic    boardom Forum Index -> PHP help
View previous topic :: View next topic  
Author Message
TigerDE2



Joined: 04 Jan 2003
Posts: 53
Location: Germany, Erfurt

PostPosted: Mon Mar 03, 2003 3:48 pm    Post subject: overwriting a function? Reply with quote

Hi!
Is it possible to overwrite a function which has been included?
E.g., if my included file would read
Code:
function hi() { echo "hi"; }

Would it be possible to have a file index.php
Code:

<?php
include('inc.php');
function hi () {
 echo "bye";
}
hi(); # getting "bye" as result
?>

Thanks.
Chris
_________________
Make me happy. Smile
Correct my awful grammar and spelling mistakes...
Back to top
View user's profile Send private message
GamerZ



Joined: 15 May 2002
Posts: 537
Location: Singapore

PostPosted: Mon Mar 03, 2003 4:07 pm    Post subject: Reply with quote

hmm but y would u overwrite a function?

Y not just create it with a differentname?
_________________

++ GamerZ.Per.Sg - Complex Simplicity
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> PHP help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group