05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

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

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

enclosing array lookup in, 120<br />

as pattern delimiters, 104<br />

variable interpolation in strings, 73<br />

$ (dollar sign)<br />

in regular expressions, 96, 101, 104, 105<br />

in variable names, 22, 30<br />

. (dot)<br />

.+ (concatenation assignment)<br />

operator, 46<br />

. (string concatenation) operator, 38<br />

in cookie names, decoding, 180<br />

in HTML field names, converting for <strong>PHP</strong><br />

variables, 163<br />

single-character matches in regular<br />

expressions, 96<br />

wildcard match character, 104<br />

= (equals sign)<br />

= (assignment) operator, 44<br />

== (equal to) operator, 26, 40<br />

comparing strings with, 86<br />

=== (identity) operator, 40<br />

comparing strings with, 86<br />

testing return value for failure, 93<br />

=> symbol, separating array indexes from<br />

values, 118<br />

! (exclamation point)<br />

!= (inequality) operator, 40<br />

!== (not identical) operator, 40<br />

type specification modifier, 336<br />

# (hash marks) in comments, 19<br />

- (hyphen)<br />

-> construct, accessing properties and<br />

methods, 28, 142<br />

defining character range in regular<br />

expressions, 97<br />

inline pattern matching options, turning<br />

off, 108<br />

- (minus sign)<br />

- (arithmetic negation) operator, 38<br />

-- (autodecrement) operator, 39<br />

-= (subtraction assignment) operator, 45<br />

- (subtraction) operator, 38<br />

for right-justified strings, 77<br />

() (parentheses)<br />

grouping operands for precedence, 36<br />

grouping patterns in regular<br />

expressions, 99<br />

non-capturing groups, 106<br />

as pattern delimiters, 104<br />

472 | Index<br />

% (percent sign)<br />

%= (modulus assignment) operator, 45<br />

% (modulus) operator, 38<br />

in format string to printf(), 76<br />

+ (plus sign)<br />

+= (addition assignment) operator, 45<br />

+ (addition) operator, 38<br />

+ (arithmetic assertion) operator, 38<br />

++ (autoincrement) operator, 39<br />

in greedy and non-greedy quantifiers, 106<br />

printing positive numbers with, 77<br />

spaces, encoding in URLs, 85, 224<br />

? (question mark)<br />

?: (conditional) operator, 46, 48<br />

in non-greedy quantifiers, 106<br />

placeholder in database queries, 198<br />

replacing characters outside target<br />

encoding, 270<br />

" (quotes, double)<br />

double-quoted strings<br />

escape sequences in, 25<br />

variable interpolation in, 73<br />

in heredocs, 75<br />

HTML entity for, 82<br />

in SQL queries, 85<br />

in string literals, 25<br />

' (quotes, single)<br />

in heredocs, 75<br />

HTML entity for, 82<br />

single-quoted strings, 73<br />

in SQL queries, 85<br />

in string literals, 25<br />

escape sequences in, 26<br />

; (semicolon)<br />

after terminating heredoc identifier, 75<br />

before <strong>PHP</strong> closing tag, 18<br />

in <strong>PHP</strong> statements, 18<br />

/ (slash)<br />

//, in C++-style comments, 20<br />

/= (division assignment) operator, 45<br />

/ (division) operator, 38<br />

/* */, in multiline C-style comments, 20<br />

type specification modifier, 336<br />

~ (tilde), bitwise negation operator, 41<br />

_ (underscore)<br />

_ _, method names beginning with, 143<br />

converting dots (.) in cookie names<br />

to, 180<br />

converting dots (.) in HTML field names<br />

to, 163<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.

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

Saved successfully!

Ooh no, something went wrong!