【精品文档】386关于计算机专业PHP语言介绍简介概述英文英语外文文献翻译成品:PHP基础语言(中英文双语对照)

上传人:从****越 文档编号:119596869 上传时间:2020-01-20 格式:DOC 页数:8 大小:53KB
返回 下载 相关 举报
【精品文档】386关于计算机专业PHP语言介绍简介概述英文英语外文文献翻译成品:PHP基础语言(中英文双语对照)_第1页
第1页 / 共8页
【精品文档】386关于计算机专业PHP语言介绍简介概述英文英语外文文献翻译成品:PHP基础语言(中英文双语对照)_第2页
第2页 / 共8页
【精品文档】386关于计算机专业PHP语言介绍简介概述英文英语外文文献翻译成品:PHP基础语言(中英文双语对照)_第3页
第3页 / 共8页
【精品文档】386关于计算机专业PHP语言介绍简介概述英文英语外文文献翻译成品:PHP基础语言(中英文双语对照)_第4页
第4页 / 共8页
【精品文档】386关于计算机专业PHP语言介绍简介概述英文英语外文文献翻译成品:PHP基础语言(中英文双语对照)_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《【精品文档】386关于计算机专业PHP语言介绍简介概述英文英语外文文献翻译成品:PHP基础语言(中英文双语对照)》由会员分享,可在线阅读,更多相关《【精品文档】386关于计算机专业PHP语言介绍简介概述英文英语外文文献翻译成品:PHP基础语言(中英文双语对照)(8页珍藏版)》请在金锄头文库上搜索。

1、此文档是毕业设计外文翻译成品( 含英文原文+中文翻译),无需调整复杂的格式!下载之后直接可用,方便快捷!本文价格不贵,也就几十块钱!一辈子也就一次的事!外文标题:PHP Language Basics外文作者:Jason Lengstorf文献出处: PHP for Absolute Beginners,2018: pp 29-68 (如觉得年份太老,可改为近2年,毕竟很多毕业生都这样做)英文2187单词,12403字符(字符就是印刷符),中文3135汉字。(如果字数多了,可自行删减,大多数学校都是要求选取外文的一部分内容进行翻译的。)PHP Language BasicsActive Ser

2、ver Pages (PHP) is a proven, well-established technology for building dynamic Web applications, which provides the power and flexibility 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 f

3、eature of PHP is that it lets you choose your favourite scripting language, be it JavaScript or PHP ; however, PHP  is by far the most popular choice. In this article, Ill bring you up to speed on the basic syntax of the PHP  language, including variables, operators, and control structures

4、.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 right where the previous article in the series, Getting Started with PHP, left off.VariablesHere is the listin

5、g for the first PHP script I helped you create in the previous article:123My First PHP Page456  <?php 7   Write out a simple HTML paragraph 8  Echo  "This is a test of PHP." 9  ?> 1011As I admitted in that article, this is a pretty uninteresting example of an

6、 PHP script. When it comes right down to it, this script doesnt do anything a plain, old HTML page couldnt 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 some form of calculation, or manipulate dynamic

7、 information to present it in some interesting way.The language used for writing most PHP programs, and which Ill be using throughout this series, is called PHP . Like most programming languages, PHP  lets you store data in variables. A variable may be thought of simply as a named location in m

8、emory where data may be stored. PHP  is what is known as a loosely typed language, which means that a particular variable may store any kind of information, be it a number, a piece of text, a date, or some more complicated chunk of data (as opposed to strictly typed languages where you can only

9、 store one kind of information in each variable). Before you can use a variable, though, you must declare it; that is, you must let PHP know that you want to create a variable with a particular name.Lets look at a basic example to help solidify these concepts in your mind. Say you were writing a Web

10、 page that performed conversions between Celsius and Fahrenheit temperatures. In countries where Celsius is used, 20&deg;C is commonly accepted as the value for room temperature. The following code creates a variable called intRoomTempC, and then assigns it a value of 20:New Revised 2nd Edition

11、Out NOW!"Build Your Own Database Driven Website Using PHP & MySQL" Fully updated for PHP 4.3.Installation instructions for Mac OS XFull index providedNew wider book sizeEnhanced fontsNew cover designLay-flat spineAll content revisitedDownload the First 4 Chapters FREETell me more about

12、 this top-selling book.$ intRoomTempC     Create a variable intRoomTempC = 20     Assign the variable a value of 20The keyword $ in the above is short for $ension, and is used to tell PHP  to create a variable with the name specified (in this case, intRoomTempC). Why $ension

13、, you ask? I agree, its not the most obvious choice, but basically it refers to what youre asking PHP  to do. When creating a variable, PHP  needs to assign some space in memory to store whatever value(s) will be placed in the variable, and part of that task is to figure out the size ($ens

14、ion) of the space that needs to be allocated. In any case, creating a variable is as simple as typing $ followed by the name of the variable.The second line of the above example assigns a value to the variable that was just created; specifically, it stores the number 20 in the variable. The equals s

15、ign (=) is called the assignment operator because it is used to assign values to variables. During the course of this article, youll meet many other operators that do other weird and wonderful things to variables and the values they store.You should always create a variable before assigning it a val

16、ue, and youll 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 variable 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 doesnt exist. Since you are free to use implicit decl

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 期刊/会议论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号