文档介绍:
附录A外文翻译-原文部分PHPLanguageBasicsActiveServerPages(PHP)isaproven,well-establishedtechnologyforbuildingdynamicWebapplications,whichprovidesthepowerandflexibilityyouneedtocreateanythingfromapersonal,merceproject。OneuniquefeatureofPHPisthatitletsyouchooseyourfavouritescriptinglanguage,beitJavaScriptorPHP;however,PHPisbyfarthemostpopularchoice.Inthisarticle,I'llbringyouuptospeedonthebasicsyntaxofthePHPlanguage,includingvariables,operators,andcontrolstructures.ThisarticleisthesecondinaseriesteachingPHP.Specifically,thegoalofthisseriesistoteachyouallyouneedtoknowtocreatedynamicWebsitesusingPHP.Thisarticlepicksuprightwherethepreviousarticleintheseries,GettingStartedwithPHP,leftoff.VariablesHereisthelistingforthefirstPHPscriptIhelpedyoucreateinthepreviousarticle:12
3MyFirstPHPPage456<?php7 'WriteoutasimpleHTMLparagraph8Echo"ThisisatestofPHP."9?>1011AsIadmittedinthatarticle,thisisaprettyuninterestingexampleofanPHPscript.esrightdowntoit,thisscriptdoesn'tdoanythingaplain,oldHTMLpagecouldn'tdo.Ohsure,Igaveaslightlymoreinterestingexamplethatdisplayedthecurrentservertime,buttobereallyusefulascriptneedstoperformsomeformofcalculation,ormanipulatedynamicinformationtopresentitinsomeinterestingway.ThelanguageusedforwritingmostPHPprograms,andwhichI'llbeusingthroughoutthisseries,iscalledPHP.Likemostprogramminglanguages,PHPletsyoustoredatainvari
内容来自淘豆网www.taodocs.com转载请标明出处.