I need to convert the below code from Java, to PHP.
public static final String MakeHexStr(byte[] byteArr) {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
PrintStream printStream = new PrintStream(byteArrayOutputStream);
for (byte valueOf : byteArr) {
[login to view URL]("%02X", new Object[]{[login to view URL](valueOf)});
}
return [login to view URL]();
}
Working as a Java Developer over 10 years in IT sector and then, working as Full Stack Developer and Java Software Architect having experience with the AWS and monitoring processes as well as DevOps development in Windows Mac and Linux systems.