25.09.2014 Views

ZEND PHP 5 Certification STUDY GUIDE

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

26 ” <strong>PHP</strong> Basics<br />

Associativity Operator<br />

left [<br />

non-associative ++ -<br />

non-associative ˜ - (int) (float) (string) (array) (object) @<br />

non-associative instanceof<br />

right !<br />

left * / %<br />

left + - .<br />

left ><br />

non-associative < >=<br />

non-associative == != === !==<br />

left<br />

&<br />

left<br />

ˆ<br />

left |<br />

left<br />

&&<br />

left ||<br />

left ? :<br />

right = += -= *= /= .= %= &= |= ˆ= =<br />

left<br />

and<br />

left<br />

xor<br />

left<br />

or<br />

left ,<br />

Control Structures<br />

Control structures allow you to control the flow of your script—after all, if all a script<br />

could do was run from start to finish, without any control over which portions of the<br />

script are run and how many times, writing a program would be next to impossible.<br />

<strong>PHP</strong> features a number of different control structures—including some that, despite<br />

being redundant, significantly simplify script development. You should be very<br />

familiar with all of them, as they are one of the fundamental elements of the language’s<br />

structure.<br />

Licensed to 482634 - Amber Barrow (itsadmin@deakin.edu.au)

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

Saved successfully!

Ooh no, something went wrong!