Script for you: Scrape everything faster and easier with curl_multi and "threads"



Actually this does the trick
Code:
    public static function strip_whitespace($string) {
        trim($string);
        return $string;
    }

Yeah this is a great class. I'm trying to figure it out.

You are missing a method in the QueenAnt class.

Code:
PHP Fatal error:  Call to undefined method QueenAnt::strip_whitespace()

So, do I simply need to add this to QueenAnt class to have the correct method called.

Code:
//protected so only children can use
protected function strip_whitespace($string) {
        trim($string);
        return $this->string;
    }
 
oh sorry forgot that

Code:
    public static function strip_whitespace($str) {
        $str = str_replace(' ', '', $str);
        $str = str_replace("\n", '', $str);
        $str = str_replace("\r", '', $str);
        $str = str_replace("\t", '', $str);
        return $str;
    }