From 107f448061a5b7001a4aaad3dc0340f04457456b Mon Sep 17 00:00:00 2001 From: "Sruu.pl" Date: Sun, 18 Feb 2018 17:59:24 +0100 Subject: [PATCH] Update en.md --- docs/en.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 ```