Consider
$var1== $var2 : This means var1 and var2 must be equal in values
$var1=10;
$var2=10;
so $var1==$var2 is true but if $var2=9; then the above statement will be false
now
$var1===$var2
this will check values and their type i.e both should be integer and value should be 10 only then it will return true.
$var2='dummy';
$var1 === $var2 it will return false.
The incremental operator increases the variable by 1. See the example below: <?php $number = 10; $number++; echo $number; // outputs 11 ?>
The dot (.) operator in PHP is used to concatenate strings. For instance:$start = "Big";$end = "Bird";echo $start . ' ' . $end;This code would produce the output:Big Bird
An operator merges two different values and outputs a new expression based on the inputted values.
First of all, PHP is server side, Javascript is client side. You cannot detect mouse gestures or any clicks with PHP the same way you cannot read a file or modify it or process a form (unless you use AJAX of course). Also, although I love PHP, and it has useful extensions such as the GD library, PHP is not a very good language. Overall we use javascript and PHP because they are used for two completely different things.
We can use php tags in different ways. <?php //php code to be written here ?> OR <? //php code ?> This tag will not work when we using editors such as macromedia dreamweaver. OR < script language="php"> //php code </script>
The incremental operator increases the variable by 1. See the example below: <?php $number = 10; $number++; echo $number; // outputs 11 ?>
The dot (.) operator in PHP is used to concatenate strings. For instance:$start = "Big";$end = "Bird";echo $start . ' ' . $end;This code would produce the output:Big Bird
An operator merges two different values and outputs a new expression based on the inputted values.
'1' will return false because one variable is an integer and the other is a string.
It is used to tell the sever to use the PHP parser. To begin php you must use <?php, and to end it, it is ?>.
You can't use PHP in an HTML document, but you can use HTML in PHP script.
There are several boolean operators in PHP. I'm not able to provide you with it's full list, but here are some of the most used ones: && - AND - OR ! - NOT
Firstly, this is wrong question. The right one would be WHEN should you use PHP, not JSP? or, WHEN should you use PHP and WHEN JSP?
PHP 5 has a XML parser called SimpleXML that you could use.
You can use phpMailer() Or, you can use mail() PHP function to send emails via PHP script.
PHP certification is received after doing some sort of PHP course, there are many out there to do. You can use them in your CV to help you get a job in PHP.
You can find information about how to use PHP 5 on the official PHP website, PHP.net, through the PHP 5 documentation section. Additionally, online tutorials, forums, and books dedicated to PHP programming are great resources to learn how to use PHP 5 effectively.