"Standart" PHP ile, hayır, böyle bir şey yapamaz.
Still, looking at PECL and the manual, a possibility would be to use the classkit extension -- but it's marked as "not maintained", and has not been updated since 2004... So I would definitly not use it.
Bu uzatma pecl sayfasını alıntı:
NOTICE: This package has been
discontinued. Please refer to the
runkit package which is fully BC with
classkit and contains additional
functionality.
So, let's take a look at the runkit extension, which might do the trick -- especially, the runkit_import
function could interest you (quoting) :
Similar to include()
however any
code residing outside of a function or
class is simply ignored. Additionally,
depending on the value of flags ,
any functions or classes which already exist in the currently running
environment will be automatically
overwritten by their new
definitions.
Yine de 5.3 desteği PHP söz konusu olduğunda ya ... iyi bir işaret değildir ... Hangi resmen (looking at it's PECL page) em>, runkit uzatma 2006 yılından bu yana güncellenen henüz, unutmayın. ..