05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

sql_regcase() function, 443<br />

sqrt() function, 443<br />

Squid proxy cache, 313<br />

SquidGuard, adding redirection<br />

logic, 314<br />

srand() function, 443<br />

sscanf() function, 92, 443<br />

SSL (Secure Sockets Layer), 188<br />

stacks, implementing with arrays, 138<br />

standalone extensions, 325<br />

start and end element handlers, 266<br />

start value of strings, 90<br />

starting point, graphics in PDF files, 249<br />

stat() function, 443<br />

state<br />

debugger program for printing stack<br />

trace, 138<br />

maintaining between requests, 178–188<br />

combining cookies and sessions, 187<br />

cookies, 179–182<br />

session tracking, 178<br />

sessions, 182–187<br />

statements<br />

flow-control, 46–54<br />

declare, 54<br />

exit and return, 54<br />

for, 52<br />

foreach, 53<br />

if, 47<br />

switch, 48–50<br />

while, 50–52<br />

return, 63<br />

semicolons (;) in, 18<br />

static methods, 143<br />

declaring, 144<br />

static variables, 32, 65<br />

status codes, HTTP response, 159<br />

stdClass (reserved class name), 143<br />

STD_<strong>PHP</strong>_INI_ENTRY() macro, 347<br />

sticky forms, 167<br />

sticky multi-valued parameters, HTML<br />

forms, 170<br />

storing data in arrays, 117–120<br />

adding values to end of array, 118<br />

assigning range of values, 119<br />

getting array size, 119<br />

padding, 119<br />

strcasecmp() function, 87, 444<br />

strchr() function, 94, 444<br />

strcmp() function, 40, 87, 445<br />

strcoll() function, 445<br />

strcspn() function, 95, 445<br />

streaming PDF documents, 236<br />

strftime() function, 445<br />

striking out text in PDF files, 241<br />

(string) casting operator, 43<br />

string literals, 25<br />

strings, 25, 39, 72–115, 418<br />

accessing individual characters, 79<br />

breaking into chunks (example), 163<br />

changing case of, 81<br />

characters, converting into HTML entity<br />

equivalents, 81<br />

comparing, 39, 86–89<br />

for approximate equality, 88<br />

for equality, 26, 86<br />

concatenating, 37<br />

. operator, 38<br />

strcat() function, 63<br />

containing numbers, sorting in correct<br />

order, 133<br />

converting<br />

between encodings, iconv<br />

extension, 462<br />

to numbers, 37<br />

to/from URL encoding, 84, 224<br />

C-string encoding, 85<br />

extension functions returning, 338<br />

functions for manipulating and<br />

searching, 89–95, 377<br />

exploding and imploding, 91<br />

padding strings, 91<br />

repeating strings, 91<br />

reversing strings, 90<br />

search functions, 93–95<br />

splitting on regular expression pattern<br />

boundary, 442<br />

substrings, 89<br />

tokenizing strings, 92<br />

HTML, converting special characters to<br />

entities, 81<br />

HTML meta tags, extracting from, 84<br />

HTML tags, removing from, 83<br />

as keys to associative arrays, 116<br />

length of, strlen() function (example), 61<br />

null-terminated, in extensions, 331<br />

printing, 75–79<br />

with echo, 76<br />

with print() function, 76<br />

with printf() function, 76<br />

with print_r() function, 78<br />

with var_dump() function, 79<br />

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

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.<br />

Index | 501

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

Saved successfully!

Ooh no, something went wrong!