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.
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.
var_dump:
By using this function we
can get the value of variable along with its datatype.
printf:
By using this function we
can display variable value with the support of format specifier.
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.
unset:
By using this function we
can delete the value of a variable.
PHP Output Functions
Reviewed by Abdul iTech
on
Sunday, February 24, 2019
Rating:
No comments: