Php – curl_init() error Uncaught Error: Call to undefined function

php

why I always get Uncaught Error: Call to undefined function curl_init().
I have set extension:php_curl in php.ini and install php-curl too.
but not working. .
everyone help me?

Best Solution

Install curl

sudo apt-get install php-curl 

if you are using php 7

sudo apt-get install php7.0-curl

and restart server

sudo service apache2 restart