// where someclass is a class and somemember is a member function of that class $o = new someclass()->somemember();