网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   MetInfo (https://www.0058.net/forumdisplay.php?f=87)
-   -   判断2个数是不是相等。 (https://www.0058.net/showthread.php?t=4898)

Marc 2014-12-16 07:36 AM

判断2个数是不是相等。
 
方法1: 用if else语句


方法2:
Code:


<?php
$i=1;
$j=2;
 
echo ($i==$j) ? '相等' : '不相等';



All times are GMT +8. The time now is 11:00 AM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.