private function fetchImageContentFromURL($url)
    {
        $data = null;

        if ($stream = fopen($url, 'r')) {
            $data = stream_get_contents($stream);
            fclose($stream);
        }

        return $data;
    }
private function fetchImageContentFromURL($url)
    {
        $data = null;

        if ($stream = fopen($url, 'r')) {
            $data = stream_get_contents($stream);
            fclose($stream);
        }

        return $data;
    }
private function fetchImageContentFromURL ( $ url ) { $ data = null ; if ( $ stream = fopen ( $ url , 'r' ) ) { $ data = stream_get_contents ( $ stream ) ; fclose ( $ stream ) ; } return $ data ; }
Fetch an image string content from URL.

@param  string $url Image URL.
@return string String data
Fetch an image string content from URL .