Skip to main content
  • 762 Accesses

Abstract

You’re only two chapters into the book and already quite a bit of ground has been covered. By now, you are familiar with PHP’s background and history and have delved deep into the installation and configuration concepts and procedures. This material sets the stage for what will form the crux of much of the remaining material in this book: creating powerful PHP applications. This chapter initiates this discussion, introducing a great number of the language’s foundational features. Specifically, you’ll learn how to do the following:

  • Embed PHP code into your Web pages

  • Comment code using the various methodologies borrowed from the Unix shell scripting, C, and C++ languages

  • Output data to the browser using the echo(), print (), printf (), and sprintf () statements

  • Use PHP’s datatypes, variables, operators, and statements to create sophisticated scripts

  • Take advantage of key control structures and statements, including if-else-elseif, while, foreach, include, require, break, continue, and declare

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

Rights and permissions

Reprints and permissions

Copyright information

© 2007 W. Jason Gilmore, Bob Bryla

About this chapter

Cite this chapter

(2007). PHP Basics. In: Beginning PHP and Oracle. Apress. https://doi.org/10.1007/978-1-4302-0367-4_3

Download citation

Publish with us

Policies and ethics