From 3e664df641d022903acb060dc40a4815078ac4db Mon Sep 17 00:00:00 2001
From: Clyde Semeleer
-
-#include <phpcpp.h>
+#include <phpcpp.h>
extern void example(Php::Parameters ¶ms);
@@ -28,8 +27,7 @@ extern "C" {
});
return myExtension.module();
}
-}
-
+}
Above you see that we passed in additional information when we registered the @@ -41,6 +39,7 @@ extern "C" { will be filled with three members, and that two of them are objects of the appropriate type, and that the third one is also passed by reference.
+Variables in PHP are non-typed. A variable can thus hold any possible type: @@ -55,4 +54,4 @@ extern "C" { "Value" class that makes this a very simple task.
- \ No newline at end of file + -- cgit v1.2.3