Possible Duplicate:
Redefine Built in PHP Functions
I need to override one of the standard functions of php. in javascript, I would have done it this way:
<script type="text/javascript">
window.alert = function(str) {
document.write(str);
}
alert("hello");
</script>
whether it is possible to do this in php?