↓Cuối Trang
Bạn có thích BacNinhNo1.XTgem.Com?
Yahoo FaceBook Zing Me Google+ Twitter
Đánh giá XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 45368145
Visits Today: 355593
This Week: 1796467
This Month: 11183493

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!

(like - dislike) XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 45368155
Visits Today: 355603
This Week: 1796477
This Month: 11183503

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!


+A Tăng cỡ chữ-AMặc định- -AGiảm cỡ chữ
Toán tử trong PHP cũng giống như trong các ngôn ngữ khác.
Toán tử được sữ dụng khai báo trên tầm vực script sẽ có tầm vực trên toàn script .
Biến khai báo trong hàm ( function ) sẽ có tác dụng trên tầm vực của hàm đó .
1.Các phép toán học
========================
Toán tử| Tên| Ví dụ
-----------------------------------------
+cộng $a+$b;
-trừ $a-$b;
*Nhân $a*$b;
/chia $a/$b;
%Modulo $a%$b;
=======================
2.Các phép toán nối chuỗi
Các phép toán nối chuỗi là dấu "."
Ví dụ :
<?
$a="http://www.";
$b="library";
$b=$b."php.net";
$a=$a.$b;
echo$a;// bạn test xem
?>
3.Các phép toán trả về từ gán
Sữ dụng phép toán trả về phép toán học khác .
<?
$a="http://www.";
$b="libraryphp";
$a=$a.$b;
echo$a.($c=".net");// bạn test xem
?>
4.Các phép gán kết hợp
Trong PHP các bạn có thể sữ dụng các phép toán gán kết hợp,sẽ giảm bớt thời gian khai báo.
Sau đây là bảng thống kê phép toán gán kết hợp ( có 2 cách sữ dụng )
========================
Toán tử| sữ dụng| Tương ứng
========================
+=$a+=$b $a=$a+$b;
++$a++$a=$+1;
-=$a-=$b $a=$a-$b;
--$a--$a=$a-1;
/=$a/=$b $a=$a/$b;
*=$a*=$b $a=$a*$b;
%=$a%=$b $a=$a%$b;
.=$a.=$b $a=$a.$b;
========================
Trên đây là một số toán tử mà mình sưu tầm được, hi vọng nó sẻ giúp ít phần nào cho các bạn!

Counter : 1|1|383
Tags: bacninhno1.xtgem.com/wapmaster/php/mot so toan tu khac trong php,....
SEO : Bạn đến từ:

XtGem Forum catalog