diff --git a/docs/en.md b/docs/en.md index 0d204e6..f2cdf4b 100644 --- a/docs/en.md +++ b/docs/en.md @@ -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 ```