View previous topic :: View next topic |
Author |
Message |
TigerDE2
Joined: 04 Jan 2003 Posts: 53 Location: Germany, Erfurt
|
Posted: Mon Mar 03, 2003 3:48 pm Post subject: overwriting a function? |
|
|
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.
Correct my awful grammar and spelling mistakes... |
|
Back to top |
|
 |
GamerZ
Joined: 15 May 2002 Posts: 537 Location: Singapore
|
Posted: Mon Mar 03, 2003 4:07 pm Post subject: |
|
|
hmm but y would u overwrite a function?
Y not just create it with a differentname? _________________
++ GamerZ.Per.Sg - Complex Simplicity |
|
Back to top |
|
 |
|