帳號登錄
帳號:
密碼:
記住我 | 忘記密碼 | 帳號註冊
網站導覽
模組開發 : 資料庫操作與類別
作者 elie 於 2010年09月08日 22:40:07 (5190 次閱讀)

原始出處 http://www.xoops.org/modules/mediawiki/index.php/DB_Operations_and_Classes

 

資料庫操作與類別

在開始討論資料庫與類別操作之前,讓我先告訴你有關引號的問題。

雙引號與單引號以下兩行有什麼差別呢?

echo 'hello world';
echo "hello world";

差別是在第二行使用了雙引號,所有雙引號中間的變數都會被解譯出來:

$vin='hello';
echo "$vin world";

會輸出:

hello world

而在單引號中:

$vin='hello';
echo '$vin world';

會輸出:

$vin world

參考資料:php_single_and_double_quotes


可列印模式 轉寄給朋友

The XOOPS organisation ("XOOPS") is committed to protecting the privacy of users of the XOOPS.org sites.
The website used Ver.2.4.5 POWERED BY XOOPS PROJECT.