Back to index

php5  5.3.10
Functions | Variables
033_run.inc File Reference

Go to the source code of this file.

Functions

if(function_exists('setlocale')) test ($data)

Variables

 $data

Function Documentation

if (function_exists('setlocale')) test ( data)

Definition at line 6 of file 033_run.inc.

                     {
  return strtoupper($data);
}

$data = array(
       "PHP",
       "1",
       "foo@bar.com",
       "http://a.b.c",
       "1.2.3.4",
       "123",
       "123abc<>()",
       "O'Henry",
       "하퍼"
);


foreach(filter_list() as $filter) {
       if($filter=="validate_regexp") {
              foreach($data as $k=>$d) $result[$k] = filter_var($d,filter_id($filter),array("options"=>array("regexp"=>'/^O.*/')));
       } else {
              foreach($data as $k=>$d) $result[$k] = filter_var($d,filter_id($filter),array("options"=>"test"));
       }
       printf("%-20s",$filter);
       printf("%-5s",$result[0]);
       printf("%-3s",$result[1]);
       printf("%-15s",$result[2]);
       printf("%-20s",$result[3]);
       printf("%-10s",$result[4]);
       printf("%-5s",$result[5]);
       printf("%-20s",$result[6]);
       printf("%-15s",$result[7]);
       printf("%-10s\n",$result[8]);
}

Here is the caller graph for this function:


Variable Documentation

$data
Initial value:
 array(
       "PHP",
       "1",
       "foo@bar.com",
       "http://a.b.c",
       "1.2.3.4",
       "123",
       "123abc<>()",
       "O'Henry",
       "하퍼"
)

Definition at line 10 of file 033_run.inc.