Example of different Softing Algorithms in Php