Hooks in PHP

Programming for Search Engines 101. An area for avid PHP and .NET developers to chat about Programming techniques and how to make better use of search engines.

Moderator: Moderators

Hooks in PHP

Postby jay » Wed Mar 24, 2010 2:11 am

You can create a “hook” in PHP for plugins or additional processing, when you dont want something to act normally. This will allow you to write one script and then not have to go back and make the script ridiculously long, and full of if statements for different conditions. You can change the behavior based on conditions, or you can change it for some other reason.

Click to read great article on implementing hook functions in PHP with link to .
Jay M
Write Less, Do More
jay
 
Posts: 475
Joined: Wed Nov 22, 2006 12:05 am
Location: Cochin, India.

Re: Hooks in PHP

Postby beniston » Thu Aug 23, 2012 3:48 am

Nice feature explained in a simple way. Thanks Jay. :)
beniston
 
Posts: 502
Joined: Wed Nov 02, 2011 4:35 am
Location: Cochin
Tell us why you would like to become a WyseLabs Member:


Return to Programming

Who is online

Users browsing this forum: No registered users and 8 guests