<section> <header>Convert to All Compatible Units</header> <p>You can convert a value to all compatible units using the toAll() function</p> <pre> $AllUnitsConvertor = new Convertor(10, "m"); $AllUnitsConvertor->toAll(); //returns all compatible converted value</pre> <p>This will return an array containing the conversions for all compatible units, in the case of "meters" as a start unit, Convertor will return all available distance units</p> <?php $AllUnitsConvertor = new Convertor(10, "m"); ?> <pre><?php echo json_encode($multiunitConvertor->toAll(), JSON_PRETTY_PRINT); ?> </pre> </section> <section> <header>List All Available Units</header> <p>you can generate a list of all compatible units using the getUnits() function.</p> <pre> $getUnitsConvertor = new Convertor(); $getUnitsConvertor->getUnits("m"); //returns converted value</pre> <p>This will return an array of all available units compatible with the specified unit:</p> <?php $getUnitsConvertor = new Convertor();