Update README.md, consistent use of spaces instead of tabs, better examples

This commit is contained in:
joopschilder committed 2020-12-12 13:05:48 +01:00
1 parent 92bc0ab407
commit db081158d7
30 files changed
+997 -1041

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
<?php
class Job
{
private string $title;
public function __construct(string $title)
{
$this->title = $title;
}
public function __invoke()
{
cli_set_process_title("php {$this->title}");
print("* {$this->title}");
sleep(1);
print("\r {$this->title}\n");
}
}