Bored one night, started coding and ended up kind of making my own kind of encryption. Im not a professional PHP programmer, ive been self teaching myself for about a year

This is how it works

It takes the a string and a key, and returns what seems like loads of random numbers so
"dreamviews" returns:
3360849-19044811-4481132-0-13443396-23525943-8962264-4481132-24646226-20165094

using the key "lucid"


To decrypt it, you need to use the word "lucid" to get back to the orginal "dreamviews".

I know its probably really nooby but is that a good thing to do for someone who is 18 and been self teaching theirself?