Difference between echo and print in php tamil | How to print string or value in php | Parallel Code

preview_player
Показать описание
Learn about the difference between echo and print statement in php | difference between print and echo in php tamil | print statements in php | echo statement in php | How to print string or variable in php | How many ways to print values or string php

echo is one of the printing statement in php and also which is print string as well as values together or alone. you can print this using single quote or double quote and bracket without bracket. echo statement doesn't return any value. so it works faster.
Example:
echo "Welcome"; or echo 'Welcome'; or echo ("welcome");

print is one of the printing statement in php and also which is print string as well as values together or alone. you can print this using single quote or double quote and bracket without bracket. print statement doesn't return 1 always. so it works slower than echo.

Example:
print "Welcome"; or print 'Welcome'; or print ("welcome");

Note:
print statement can assign to a variable but echo statement can not assign to a variable

Example :
$a=print ("welcome");
Now $a value is 1

$a= echo ("welcome");
Now this line is syntax error because echo statement cannot assign to a variable.

Рекомендации по теме
Комментарии
Автор

Romba clear aa purinchu anna ! Thankyou Thankyou Thankyou so much!🙏🙏🙏🙏🙏

sowbaranikag
Автор

Frame work soli tharingala like codeigniter mari

b.sivakumar
Автор

Athu Test Message illa Text Message Murugesah 😅

MohamedAsif