resources/views/search.blade.php
// code for shortening the big content fetched from database
code for shortening the big content fetched from database
code for shortening the big content fetched from database
function textShorten($text, $limit = 40){
                                 $text = $text." ";
                                 $text = substr($text, 0, $limit);
                                 $text = substr($text, 0, strrpos($text, " "));
                                 $text = $text;
                                 return $text;
                             }
function textShorten ( $ text , $ limit = 40 ) { $ text = $ text . " " ; $ text = substr ( $ text , 0 , $ limit ) ; $ text = substr ( $ text , 0 , strrpos ( $ text , " " ) ) ; $ text = $ text ; return $ text ; }
code for shortening the big content fetched from database
code for shortening the big content fetched from database