13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Assignment Operators 34<br />

Comparison Operators 36<br />

Logical Operators 38<br />

Bitwise Operators 38<br />

Other Operators 39<br />

Working Out the Form Totals 41<br />

Underst<strong>and</strong>ing Precedence <strong>and</strong> Associativity 42<br />

Using Variable Functions 44<br />

Testing <strong>and</strong> Setting Variable Types 44<br />

Testing Variable Status 45<br />

Reinterpreting Variables 46<br />

Making Decisions with Conditionals 46<br />

if Statements 46<br />

Code Blocks 47<br />

else Statements 47<br />

elseif Statements 48<br />

switch Statements 49<br />

Comparing the Different Conditionals 51<br />

Repeating Actions Through Iteration 51<br />

while Loops 53<br />

for <strong>and</strong> foreach Loops 54<br />

do...while Loops 55<br />

Breaking Out of a Control Structure or Script 56<br />

Employing Alternative Control Structure Syntax 56<br />

Using declare 57<br />

Next 57<br />

2 Storing <strong>and</strong> Retrieving Data 59<br />

Saving Data for Later 59<br />

Storing <strong>and</strong> Retrieving Bob’s Orders 60<br />

Processing Files 61<br />

Opening a File 61<br />

Choosing File Modes 61<br />

Using fopen() to Open a File 62<br />

Opening Files Through FTP or HTTP 64<br />

Addressing Problems Opening Files 65

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!