Started portage of php function