string_functions.php

<?php
// FUNCTION  REMOVES TAGS ALL TOGETHER
function stripTags($string) {

      
//$regex = "@\<.*?\>(.*?)\</.*?\>@i";
      
$regex "@\<.*?\>@i";

      
$string preg_replace($regex"-"$string);
     

    return 
$string;
}





//================================================


function removeStopwords(){
  
// removes common words

  
$sw_file =  "stopwords.csv";

  
$stopwords file_get_contents($sw_file);

  
$stopwords_array explode(","$stopwords);



return 
$stopwords_array;
  
}



//===============================================



?>

Paul's Code Library

Categories

Home

AJAX

classes

database_functions

date_functions

file_functions

googlevideo_and_youtube_api

htaccess

image_functions

string_functions