Skip to content

Commit 4ba72e6

Browse files
authored
Update incomingrequest.rst
1 parent 8c1c5c9 commit 4ba72e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

user_guide_src/source/incoming/incomingrequest.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ You can check the HTTP method that this request represents with the ``method()``
4444
.. literalinclude:: incomingrequest/005.php
4545

4646
By default, the method is returned as a lower-case string (i.e., 'get', 'post', etc). You can get an
47-
uppercase version by wrapping the call in ``str_to_upper()``::
47+
uppercase version by wrapping the call in ``strtoupper()``::
4848

4949
// Returns 'GET'
50-
$method = str_to_upper($request->getMethod());
50+
$method = strtoupper($request->getMethod());
5151

5252
You can also check if the request was made through and HTTPS connection with the ``isSecure()`` method:
5353

0 commit comments

Comments
 (0)