Skip to Content
PHP for the Web: Visual QuickStart Guide, Fourth Edition
book

PHP for the Web: Visual QuickStart Guide, Fourth Edition

by Larry Ullman
March 2011
Beginner
528 pages
12h 37m
English
Peachpit Press
Content preview from PHP for the Web: Visual QuickStart Guide, Fourth Edition

4. Using Numbers

Chapter 2, “Variables,” briefly discussed the various types of variables, how to assign values to them, and how they’re generally used. In this chapter, you’ll work specifically with number variables—both integers (whole numbers) and floating-point numbers (aka floats or decimals).

The chapter begins by creating an HTML form that will be used to generate number variables. Then you’ll learn how to perform basic arithmetic, how to format numbers, and how to cope with operator precedence. The last two sections of this chapter cover ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP for the Web: Visual QuickStart Guide, Third Edition

PHP for the Web: Visual QuickStart Guide, Third Edition

Larry Ullman

Publisher Resources

ISBN: 9780132575140Purchase book