How to get error message in PHP

I just startd the coding in PHP. When i run my code i get blank screen   Is there any way to get error in PHP . Its Really frustrating me . When i try to run the code i get blank screen or empty Screen . There is not any error is display on the page. May be i am doing some mistakes like missing bracket, missing semicolon of incorrect function . 

For me it is very difficult to figure out what i am doing misake . Please someone help to find out how can i get error message in PHP. 

Displaying blank page is mostly caused by some PHP error in the code. If error reporting is on (displaying PHP errors is enabled) then it is very easy to find the error and solve the problem.

You can set PHP error reporting on in php.ini file (in case you have access to this file). Set the following lines:

error_reporting  =  E_ALL
display_errors = On

And if you can't modify the  PHP.INI  file you can add the following line of code in .htaccess file

# Displaying PHP errors
php_flag display_errors on
php_value error_reporting 6143

Hope this help you