18
readarg
readarg
SYNOPSIS
readarg($s, $trim=true, $strip=true)
DESCRIPTION
CODE
- function readarg($s, $trim=true, $strip=true) {
- if (is_array($s)) {
- return array_map('readarg', $s, array_fill(0, count($s), $trim), array_fill(0, count($s), $strip));
- }
- if ($trim) {
- $s = trim($s);
- }
- if ($strip) {
- $s = strip_tags($s);
- }
- return $s;
- }
Commentaires