filter() 공개 메소드

Filters a value.
public filter ( mixed $in ) : mixed
$in mixed Object to be filtered
리턴 mixed
예제 #1
0
파일: Trim.php 프로젝트: jyxo/php
 /**
  * Filters a value.
  *
  * @param mixed $in Object to be filtered
  * @return \Jyxo\Input\FilterInterface This object instance
  */
 public function filter($in)
 {
     $in = parent::filter($in);
     // Removes empty values
     if (is_array($in)) {
         $in = array_filter($in);
     }
     return $in;
 }