Hey guys,
I'm not much of a PHP expert. I'm encoding a URL with base64_encode
.
I get quite a long encoded string with a lot of weird characters exactly as I want it to be.
Is there a way to trim this long line of characters to let's say 10 or 15 chars, so I can decode it later again?
I know there is trim()
but that does not exactly what I want. I want a long encoded string to be rather short and later I want to decode it again.
Any ideas?