redefining a function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

redefining a function

Post by m2babaey »

Hi
Can I define a function that already exists? for example:

Code: Select all

function md5 (){
return sha256::hash();
}
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

No without a runkit, which likely will not be loaded on most hosts (unless you have complete control, and even then, it's not a great idea.)
Post Reply