public static function cleanImageContent($content) {
		$posImg = strpos($content, '<img');
		
		$result = $content;
		if($posImg !== false) {
			$posClosedImg = strpos($content, '/>', $posImg) + 2;
			$img = substr($content, $posImg, ($posClosedImg-$posImg));

			$result = str_replace($img, '', $content);
		}
		return $result;	
	}
public static function cleanImageContent($content) {
		$posImg = strpos($content, '<img');
		
		$result = $content;
		if($posImg !== false) {
			$posClosedImg = strpos($content, '/>', $posImg) + 2;
			$img = substr($content, $posImg, ($posClosedImg-$posImg));

			$result = str_replace($img, '', $content);
		}
		return $result;	
	}
public static function cleanImageContent ( $ content ) { $ posImg = strpos ( $ content , '<img' ) ; $ result = $ content ; if ( $ posImg !== false ) { $ posClosedImg = strpos ( $ content , '/>' , $ posImg ) + 2 ; $ img = substr ( $ content , $ posImg , ( $ posClosedImg - $ posImg ) ) ; $ result = str_replace ( $ img , '' , $ content ) ; } return $ result ; }
Ambil isi berita dan buang image darinya.
Ambil isi berita dan buang image darinya .