1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I filter multiple array items?

Discussion in 'XenForo Development Discussions' started by Uniphix, Nov 10, 2011.

  1. Uniphix

    Uniphix Active Member

    I have a mass upload feature that I need to filter the array ie


    How can I filter this???
  2. EasyTarget

    EasyTarget Well-Known Member

  3. Uniphix

    Uniphix Active Member

    no what I meant was with the XenForo Input Filtering :) my bad...
  4. allewreK

    allewreK Active Member


    I'm trying to do something similary (filter a mutlidimensionnal array), but I can't get it working.
  5. allewreK

    allewreK Active Member

    I have just tried with
    it is working. Anyway to do that with
    $input $this->_input->filter
  6. Nobita.Kun

    Nobita.Kun Well-Known Member

    $array $this->_input->filter(array(
    'arr1' => XenForo_Input::UINT,
    'arr2' => XenForo_Input::STRING

  7. allewreK

    allewreK Active Member

    In fact, I don't know the number of array to filter. It's dynamic.

Share This Page