here is some of my php functions I did and used in my scripts