Is Base64_encode() in PHP equal to java.util.Base64?
问题 I want to use php to pass and get a encoded string to other system which are using java.util.Base64 to encode and decode. Can I use base64_encode($str) to encode and pass the string to them for decode in php and can i use base62_decode($str) to decode what I get from java.util.Base64 in php? Or is there other way to encode and decode java.util.Base64 string in php? Thanks!! 回答1: Short Answer: Yes . Base64 is a standard. Long Answer: The PHP documentation for base64_encode references RFC 2045