PHP Output Functions


Output Functions in PHP
By using output functions we can display content on browser.

print:
This function displays output and return a Boolean value true the output is printed successfully, otherwise it return false. We can’t print multiple statements with a single print function.

Click on the below link to download example file:
http://bit.ly/2TjAb1O

echo:
It is same as print but doesn’t return any value that’s why the performance is faster than print function. We can also print multiple statements with single echo function.

Click on the below link to download example file:
http://bit.ly/2XiMSsE 

var_dump:
By using this function we can get the value of variable along with its datatype.

Click on the below link to download example file:
http://bit.ly/2GFNwvf

printf:
By using this function we can display variable value with the support of format specifier.

Click on the below link to download example file:
http://bit.ly/2SUtZ0G

print_r:
By using this function we can display all elements of array and properties of object. We will see this function in Array topic.

isset:
By using this function we can check whether the input variable is set with any value or not. If the value is set it return 1, on the other hand if value is not set it return nothing.

Click on the below link to download example file:
http://bit.ly/2VbH5mI

unset:
By using this function we can delete the value of a variable.

Click on the below link to download example file:
http://bit.ly/2IB0ImT
PHP Output Functions PHP Output Functions Reviewed by Abdul iTech on Sunday, February 24, 2019 Rating: 5

No comments:

Powered by Blogger.