Lines Matching refs:pos
104 $pos = strrpos($string, ".");
105 if ($pos >= $length - 4) {
107 $pos = strrpos($string, ".");
109 if ($pos >= $length * 0.4) {
110 return substr($string, 0, $pos + 1)." ...";
113 $pos = strrpos($string, " ");
114 if ($pos >= $length - 4) {
116 $pos = strrpos($string, " ");
118 if ($pos >= $length * 0.4) {
119 return substr($string, 0, $pos)." ...";