Update homepage code example and use PrismJS for syntax highlighting

This commit is contained in:
Zach Borboa
2023-06-13 20:34:47 -07:00
parent 945c8c9aad
commit 25840e5e75
6 changed files with 209 additions and 99 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
$curl = new Curl();
$curl->get('https://www.example.com/');
if ($curl->error) {
echo 'Error: ' . $curl->errorMessage . "\n";
$curl->diagnose();
} else {
echo 'Success! Here is the response:' . "\n";
var_dump($curl->response);
}