I have this JAVA code & I need to write the same thing in php:
public static String signSHA256RSA(String input, String strPrivateKey) throws Exception {