Changeset 20129 for branches/version-2_5-dev/data/class/util/SC_Utils.php
- Timestamp:
- 2011/02/10 15:30:51 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/util/SC_Utils.php
- Property svn:executable set to *
r20126 r20129 675 675 } 676 676 677 678 /** 679 * keyが正規表現にマッチした配列のみ値を返す 680 * 681 * @param mixed $array 682 * @param mixed $regex 683 * @access public 684 * @return array $results 685 */ 686 function sfFilterKey($array, $regex) { 687 foreach ($array as $key => $val) { 688 if (preg_match("/{$regex}/", $key)) { 689 $results[$key] = $val; 690 } 691 } 692 return $results; 693 } 694 677 695 function sfGetErrorColor($val) { 678 696 if($val != "") {
Note: See TracChangeset
for help on using the changeset viewer.
