版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、此文檔是畢業(yè)設(shè)計(jì)外文翻譯成品( 含英文原文+中文翻譯) ,無需調(diào)整復(fù)雜的格 式!下載之后直接可用,方便快捷!本文價(jià)格不貴,也就幾十塊錢!一輩子也就一次的事!外文標(biāo)題:PHP Language Basics外文作者:Jason Lengstorf文獻(xiàn)出處: PHP for Absolute Beginners,2018: pp 29-68 (如覺得年份太老,可改為近 2 年,畢竟很多畢業(yè)生都這樣做)英文 2187 單詞,12403 字符(
2、字符就是印刷符),中文 3135 漢字。 (如果字?jǐn)?shù)多了,可自行刪減,大多數(shù)學(xué)校都是要求選取外文的一部分內(nèi)容進(jìn)行翻譯的。 )PHP Language BasicsActive Server Pages (PHP) is a proven, well-established technology for building dynamic Web applications, which provides the power and flex
3、ibility you need to create anything from a personal, Web based photo gallery to a complete catalogue and shopping cart system for your next eCommerce project。 One unique feature of PHP is that it lets you choose your fa
4、vourite scripting language, be it JavaScript or PHP ; however, PHP is by far the most popular choice. In this article, I'll bring you up to speed on the basic syntax of the PHP language, including variables, operat
5、ors, and control structures.This article is the second in a series teaching PHP. Specifically, the goal of this series is to teach you all you need to know to create dynamic Web sites using PHP. This article picks up ri
6、ght where the previous article in the series, Getting Started with PHP, left off.VariablesHere is the listing for the first PHP script I helped you create in the previous article:1 2 3 My First PHP Page 4 5
7、 6 This is a test of PHP.“ 9 ?> 10 11 As I admitted in that article, this is a pretty uninteresting example of an PHP script. When it comes right down to it, this script doesn't do anything a plain, old H
8、TML page couldn't do. Oh sure, I gave a slightly more interesting example that displayed the current server time, but to be really useful a script needs to perform You should always create a variable before assigning
9、 it a value, and you'll usually want to assign the variable a value before putting it to use. Trying to assign a value to a variable that does not exist, however, will cause PHP to automatically create a new varia
10、ble with the given name. This is called implicit declaration, because a new variable is declared implicitly as a result of your trying to assign a value to a variable that doesn't exist. Since you are free to use im
11、plicit declaration for all of your variables, you may be wondering what the point is of using the $ command to create each and every variable by hand.The answer has to do with how easy you want it to be to find typing m
12、istakes in your code. PHP provides another command, Option Explicit, which causes PHP to disallow implicit declarations and instead display an error message whenever you try to assign a value to a non-existent variable
13、. Why would you want this to happen? Consider the following example:$ intRoomTempC ' Create a variable intRomTempC = 20 ' Assign the variable a value of 20If you have a keen eye, you may have noticed th
14、at the variable name is misspelled on the second line. This is the kind of mistake that even experienced programmers make all the time. With implicit declaration enabled, the second line will create another new variable
15、 called intRomTempC and will store the value in that variable instead. Now, if the rest of your script expects that value to be stored in intRoomTempC, you're going to run into trouble. In a large script, tracing suc
16、h a problem back to one little typing mistake can be very time consuming. That's where Option Explicit comes in:Option Explicit ' Disable implicit declaration $ intRoomTempC ' Create a variable int
17、RomTempC = 20 ' Assign the variable a value of 20This time, PHP will report the typing mistake as an illegal implicit declaration, displaying an error message to that effect with the exact line number where the
18、typing mistake was made. For this reason, I tend to explicitly declare all my variables with $ and specify Option Explicit on the first line of all of my PHP scripts. It might take slightly longer to type, but it saves
19、 a lot of headaches when something goes wrong.A shortcut exists for creating several variables at once on the same line. For instance, the following line would create two variables, intRoomTempC, and intFreezingC:$ int
20、RoomTempC, intFreezingC ' Two variables in one lineBy now you may be wondering about my naming convention for variables. The two variables created in the above snippet both begin with int. I'm using this prefix
21、 to indicate that these variables will contain integers (whole numbers). You can feel free to name your variables whatever you like and store whatever kind of data you like in them, but I prefer to use this convention
22、as a helpful reminder of the type of information in each variable. This practice of prefixing variable names with a clue as to their type is known as Hungarian notation, and I'll introduce additional prefixes for o
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 【精品文檔】386關(guān)于計(jì)算機(jī)專業(yè)php語言介紹簡jie概述有關(guān)的外文文獻(xiàn)翻譯成品:php基礎(chǔ)語言(中英文雙語對照)
- 【中英雙語】363關(guān)于計(jì)算機(jī)專業(yè)對php英文超級(jí)文本預(yù)處理語言簡介概述有關(guān)的外文文獻(xiàn)翻譯成品:php介紹(中英文雙語對照)
- 【中英雙語】439關(guān)于計(jì)算機(jī)專業(yè)對python概述介紹有關(guān)的外文文獻(xiàn)翻譯成品:python簡介(中英文雙語對照)
- 【精品文檔】363關(guān)于計(jì)算機(jī)專業(yè)對php英文超級(jí)文本預(yù)處理語言簡jie概述有關(guān)的外文文獻(xiàn)翻譯成品:php介紹(中英文雙語對照)
- 【中英雙語】478關(guān)于計(jì)算機(jī)專業(yè)對asp.net介紹簡介有關(guān) 的外文文獻(xiàn)翻譯成品:asp.net 概述(中英文雙語對照)
- 【中英雙語】527關(guān)于計(jì)算機(jī)專業(yè)開源計(jì)算機(jī)視覺庫的的外文文獻(xiàn)翻譯成品英文英語資料:對opencv的簡介介紹概述(中英文雙語對照)
- 【中英雙語】關(guān)于計(jì)算機(jī)專業(yè)有關(guān)的外文文獻(xiàn)翻譯成品:對asp n-e-t web窗體的介紹(中英文雙語對照)
- 【精品文檔】439關(guān)于計(jì)算機(jī)專業(yè)對python概述介紹有關(guān)的外文文獻(xiàn)翻譯成品:python簡jie(中英文雙語對照)
- 【中英雙語】185關(guān)于計(jì)算機(jī)專業(yè)有關(guān)的外文文獻(xiàn)翻譯成品:有效的出勤考勤管理系統(tǒng)的方法(中英文雙語對照)
- 【中英雙語】124中英文雙語計(jì)算機(jī)專業(yè)畢業(yè)設(shè)計(jì)外文文獻(xiàn)翻譯成品:django框架介紹(最新)
- 【中英雙語】224關(guān)于計(jì)算機(jī)專業(yè)seo有關(guān)的外文文獻(xiàn)翻譯成品:網(wǎng)站推廣搜索引擎優(yōu)化研究(中英文雙語對照)
- 【中英雙語】161關(guān)于計(jì)算機(jī)專業(yè)android安卓軟件程序應(yīng)用app開發(fā)介紹有關(guān)的外文文獻(xiàn)翻譯成品:android(安卓)開發(fā)簡介(中英文雙語對照)
- 【精品文檔】391關(guān)于計(jì)算機(jī)專業(yè)對html超文本標(biāo)記語言的概述簡jie有關(guān) 的外文文獻(xiàn)翻譯成品:對html的介紹(中英文雙語對照)
- 【精品文檔】417關(guān)于計(jì)算機(jī)專業(yè)對linux shell介紹概述簡jie有關(guān)的外文文獻(xiàn)翻譯成品:從linux shell開始(中英文雙語對照)
- 高校大學(xué)宿舍管理系統(tǒng)研究 中英文雙語計(jì)算機(jī)專業(yè)外文文獻(xiàn)翻譯成品
- 【中英雙語】227關(guān)于計(jì)算機(jī)專業(yè)seo有關(guān)的外文文獻(xiàn)翻譯成品:搜索引擎優(yōu)化技術(shù)及其成果的實(shí)證研究(中英文雙語對照)
- 【中英雙語】221關(guān)于計(jì)算機(jī)專業(yè)圖書管理系統(tǒng)設(shè)計(jì)有關(guān) 的外文文獻(xiàn)翻譯成品:圖書館管理系統(tǒng)的設(shè)計(jì)(中英文雙語對照)
- 【中英雙語】213關(guān)于計(jì)算機(jī)專業(yè)酒店旅游營銷網(wǎng)站設(shè)計(jì)優(yōu)化有關(guān)的外文文獻(xiàn)翻譯成品:網(wǎng)站優(yōu)化策略與實(shí)現(xiàn)研究(中英文雙語對照)
- 【中英雙語】482關(guān)于計(jì)算機(jī)專業(yè)應(yīng)用軟件app程序檢測測試有關(guān)的外文文獻(xiàn)翻譯成品:測試spring boot應(yīng)用程序(中英文雙語對照)
- 【中英雙語】172關(guān)于有關(guān)的外文文獻(xiàn)翻譯成品:基于人機(jī)交互界面的產(chǎn)品設(shè)計(jì)(中英文雙語對照)
評(píng)論
0/150
提交評(píng)論