Monthly Archives: October 2015

Abstract in php

What is abstract in php? Description: Abstract means virtual or half description or conceptual when you declare any method as abstract then they should have only function prototype and give full definition where in extents i mean in child class. … Continue reading

Posted in PHP | Leave a comment

wordpress : add_action : why the second parameter is an array instead of a function name

it’s just about referencing class using add_action(); Why this required it because we can’t initialize the class directly add_action hook so pass one array as second argument so class will initialize within a constructor. See below example class Myclass{ public … Continue reading

Posted in PHP, Wordpress | Leave a comment