Php Assignment Operators

Php Assignment Operators-74
Web Tutorials Beginner Tutorial HTML Tutorial CSS Tutorial Scripting Javascript Tutorial PHP Tutorial Perl Tutorial Ajax Tutorial ASP Tutorial VBScript Tutorial Databases SQL Tutorial My SQL Tutorial Miscellaneous XML Tutorial Webhost Tutorial Flash Tutorial SEO Tutorial PHP - Comments PHP - Include File PHP - Require PHP - If Statement PHP - If...Else PHP - Elseif PHP - Switch PHP - Forms PHP - Functions PHP - Array PHP - While Loop PHP - For Loop PHP - For Each PHP - Do While PHP - POST & GET PHP - Magic Quotes PHP - htmlentities PHP Files PHP - File PHP - File Create PHP - File Open PHP - File Close PHP - File Write PHP - File Read PHP - File Delete PHP - File Append PHP - File Truncate PHP - File Upload PHP Strings PHP - strpos PHP - str_replace PHP - substr_replace PHP - Capitalization PHP - explode PHP - implode PHP Advanced PHP - Date PHP - Session PHP - Cookies Get Help!

$x ; echo " The value of x after the post-plusplus is " .

$x; $x = 4; echo "The value of x with with pre-plusplus = " .

In this case it was 5 / 2, which has a remainder of 1.

Comparisons are used to check the relationship between variables and/or values.

so the output will become: In the above example Variable( $x) with value=100. ($x*=10) now value 10 multiply with previous value(100). it gives remainder value=”1″ and this remainder assign again to variable($x). Now concatenate this string to another string using the same variable by performing ($str.=”to the world of php”).

and the output will become:1000 and it re-assign back to the variable ($x) so the output will become : 1000 In the above example. now perform divide.($x/=500) now value 500 divide with previous value(1000). and the output will become : 1 In the above example.

For example, the addition () symbol is an operator that tells PHP to compare two values.

The following lists describe the different operators used in PHP.

In general, " =" and "-=" are the most widely used combination operators.

In addition to this "shorterhand" technique, you can specify whether you want to increment before the line of code is being executed or after the line has executed. $x = 4; echo "The value of x with post-plusplus = " .

SHOW COMMENTS

Comments Php Assignment Operators

The Latest from vkusnosup.ru ©