Added php function