PHP code example of official1coin / stellarsdk
1. Go to this page and download the library: Download official1coin/stellarsdk 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/ */
official1coin / stellarsdk example snippets
$oldBalance = 1.605;
$newBalance = 1.61;
var_dump($oldBalance + 0.005);
var_dump($newBalance);
if ($oldBalance + 0.005 === $newBalance) {
print "Equal\n";
}
else {
print "Not Equal\n";
}