<?php
$string = "Home/Gallery/Images/Mountains";
echo join('/', array_map(fn($v) => base64_encode($v), explode('/', $string)));
- Output for 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.21, 8.3.0 - 8.3.9
- SG9tZQ==/R2FsbGVyeQ==/SW1hZ2Vz/TW91bnRhaW5z
- Output for 7.3.0 - 7.3.33
- Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')' in /in/qYBjS on line 4
Process exited with code 255. - Output for 7.2.0 - 7.2.33
- Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')' in /in/qYBjS on line 4
Process exited with code 255.
preferences:
172.68 ms | 402 KiB | 188 Q