Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions content/documentation/php-interop.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ title = "PHP Interop"
weight = 14
+++

## Accessing super-globals

Use the `php/` prefix to access the global variables in combination with `get`.

```phel
(get php/$_SERVER "key") # Similar to $_SERVER['key']
(get php/$GLOBAL "argv") # Similar to $GLOBAL['argv']
```

## Calling PHP functions

PHP comes with huge set of functions that can be called from Phel by just adding a `php/` prefix to the function name.
Expand Down
Loading