PHP code example of vstaran / mycalc

1. Go to this page and download the library: Download vstaran/mycalc library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vstaran / mycalc example snippets


$mycalc = new MyCalc(12, 6);

echo $mycalc->add();

echo $mycalc->subtract();

echo $mycalc->multiply();

echo $mycalc->divide();