[Solved] How to base64 encode php in this format?

kenlly Asks: How to base64 encode php in this format?
can you guide me how to base64 encode php by base64 decode below? I have php code that decodes base64 in below encoding way:

function fn_one($_){$__='';for ($____=0;$____ < strlen($_);$____++) {$___=ord($_[$____]);$__.=chr(--$___);}return $__;}$decode=call_user_func("base64_decode",call_user_func("fn_one","cnGu[R>>"));echo $decode; // Deconde "cnGu[R>>" to "name"

in php the content is encoded as “cnGu[R>>” with the decoding code as below, the output after base64 decoding is “name”.

Can i encode in below way but result is not “cnGu[R>>”?

$encode=call_user_func("base64_encode",call_user_func("fn_one",$decode));echo $encode;// Encode "name" to "cnGu[R>>"

So how do I base64 encode “name” in reverse in the format below which results in “name” as “cnGu[R>>” ? Any correct answer is appreciated! Thank you.

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.