strings = array('"', "'"); $this->comments = array("#" => "\n", "//" => "\n", "/*" => "*/"); $this->open_string = 0; $this->open_comment = 0; $this->join_text = array(); } function start($text) { // break text into words $text = explode(' ', $text); $size = count($text); for($i = 0; $i <= $size; $i++) { $word = $text[$i]; $this->search($word); } } function search($word) { foreach($this->comments as $k => $v) { echo $k; } } } ?>

start($text); }