MyBB Community Forums

Full Version: $mybb->get_input for arrays
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi,
now we can use $mybb->get_input('xyz') instead of $mybb->input['xyz']
but we can't use $mybb->get_input instead of $mybb->input['abc']['xyz']

I think $mybb->get_input should also support these type of inputs.
for example $mybb->get_input('abc.xyz') = $mybb->input['abc']['xyz']
I think the function should accept array instead of separating it with dot, for example $mybb->get_input(array('abc', 'xyz')) or $mybb->get_input(array('abc', 'xyz', '123')) for bigger depth.