0
我在哪裏可以找到以下代碼的文檔?我在哪裏可以找到這方面的文檔?
$a = .01 * rand(0, 100) >= .5; //I don't need doc for this line, its for generating a random boolean!
$b = "it was true!";
$c = "it was false!";
echo "Guess what, " . ($a ? $b : $c); // I need documentation for how this works!
如何三元作品? – Gntem 2012-07-19 16:31:52
不太理解你的問題。我的意思是: var? var:var – qaisjp 2012-07-19 16:33:07
我知道這個例子效率不高,但它只是一個例子。 – qaisjp 2012-07-19 16:33:44