From 58966d1102cc6baafd90269ab2523d3f6da98e55 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 13 Mar 2022 07:17:44 -0700 Subject: feat(senpy_ffi): 0.1.0 :star: --- examples/ffi.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 examples/ffi.php (limited to 'examples/ffi.php') diff --git a/examples/ffi.php b/examples/ffi.php new file mode 100644 index 0000000..cf22c4a --- /dev/null +++ b/examples/ffi.php @@ -0,0 +1,25 @@ +status(); +$status; + +if ($c_status == 1): + $status = "up"; +elseif ($c_status == 0): + $status = "down"; +elseif ($c_status == -1): + $status = "not down, but unreachable"; +else: + $status = "unknown"; +endif; + +echo "status: api.senpy.club is " . $status . "\r\n"; + +?> -- cgit v1.2.3