Changeset 21452 for branches/version-2_12-dev/data/class/util/SC_Utils.php
- Timestamp:
- 2012/02/07 11:38:09 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/util/SC_Utils.php
r21450 r21452 824 824 } 825 825 826 /* 文字列に強制的に改行を入れる */827 function sfPutBR($str, $size) {828 $i = 0;829 $cnt = 0;830 $line = array();831 $ret = "";832 833 while ($str[$i] != "") {834 $line[$cnt].=$str[$i];835 $i++;836 if (strlen($line[$cnt]) > $size) {837 $line[$cnt].="<br />";838 $cnt++;839 }840 }841 842 foreach ($line as $val) {843 $ret.=$val;844 }845 return $ret;846 }847 848 826 // 二回以上繰り返されているスラッシュ[/]を一つに変換する。 849 827 function sfRmDupSlash($istr){
Note: See TracChangeset
for help on using the changeset viewer.