From 7e8cb91f68c229c06cb224cd556f8a7585db8237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Sat, 19 Aug 2017 16:21:55 +0100 Subject: [PATCH] Updated documentation --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 46155f7..30d62da 100644 --- a/README.md +++ b/README.md @@ -846,7 +846,7 @@ the `getValue` or use the `input()` instead. If items is grouped in the html, it will return an array of items. -**Note:** `getObject` will only return `$defaultValue` if the item doesn't exist. If you want `$defaultValue` to be returned if the item is empty, please use `input()->get()` instead. +**Note:** `getObject` will only return `$defaultValue` if the item doesn't exist. If you want `$defaultValue` to be returned if the item is empty, please use `input()` instead. ```php $object = input()->getObject($index, $defaultValue = null, $methods = null); @@ -871,9 +871,9 @@ $id = input($index, $defaultValue, $method); # -- match specific -- -$object = input()->get($index, $defaultValue, 'get'); -$object = input()->get($index, $defaultValue, 'post'); -$object = input()->get($index, $defaultValue, 'file'); +$object = input($index, $defaultValue, 'get'); +$object = input($index, $defaultValue, 'post'); +$object = input($index, $defaultValue, 'file'); # -- or --