PHP code example of ndowerdev / cari-jawaban

1. Go to this page and download the library: Download ndowerdev/cari-jawaban 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/ */

    

ndowerdev / cari-jawaban example snippets




rainly\Brainly;

$query = "siapa penemu lampu?";
$st = new Brainly($query);
$result = $st->exec();

if (count($result) === 0) {
  print "Not found!\n";
} else {
  print json_encode($result, JSON_PRETTY_PRINT);
}

$query = "20296626";
$st = new Brainly($query);
$result = $st->execFindTugas($query);

print_r($result);