This php function is made for getting an address for a key using Folding by Boundary method.
To get/use this project you can simply just use Clone or download
. The function code should be in index.php
file.
To run/use the function just call the function foldingByBoundary(key, address allocation)
with key
is the key and address allocation
is the max total address.
Example
echo foldingByBoundary(123456789, 1000);
This function still isn't perfect, with the limitation of key
that need to be integer/number and the address
needs to be trailing zero number (10, 100, 1000). With that in mind the function should work as it intended.
- Visual Studio Code - Editor
- Universitas Komputer Indonesia Bandung - SisberUl-2