Bilgiler harika ve örnek de tam istediğim gibi.Teşekkür ederim.

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

Peki bu ne işe yarıyor?