We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec90662 commit 360c543Copy full SHA for 360c543
content/documentation/php-interop.md
@@ -3,6 +3,15 @@ title = "PHP Interop"
3
weight = 14
4
+++
5
6
+## Accessing super-globals
7
+
8
+Use the `php/` prefix to access the global variables in combination with `get`.
9
10
+```phel
11
+(get php/$_SERVER "key") # Similar to $_SERVER['key']
12
+(get php/$GLOBAL "wpdb") # Similar to $GLOBAL['wpdb']
13
+```
14
15
## Calling PHP functions
16
17
PHP comes with huge set of functions that can be called from Phel by just adding a `php/` prefix to the function name.
0 commit comments