Update en.md

This commit is contained in:
Sruu.pl
2018-02-18 17:59:24 +01:00
committed by GitHub
parent da42464360
commit 107f448061

View File

@@ -698,15 +698,21 @@ if(checkEmptyFields(['name', 'phone', 'email'], $_POST) {
### currentURL
```php
string currentURL()
string currentURL([bool $query = false])
```
Returns the current URL.
#### Arguments
+ `query` — it decides whether the address will be returned with or without query
#### Example
```php
echo currentURL();
// Result: http://example.com/contact
echo currentURL(true);
// Result: http://example.com/contact?foo=bar
```