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.

arithmetic operators, 38<br />

implicit casting, rules for, 37<br />

array() function, 27, 118, 378<br />

casting operator, 43<br />

array_chunk() function, 121<br />

array_count_values() function, 378<br />

array_diff() function, 136, 137, 378<br />

array_filter() function, 136, 378<br />

array_flip() function, 379<br />

array_intersect() function, 137, 379<br />

array_key_exists() function, 122<br />

array_keys() function, 122, 379<br />

array_map() function, 379<br />

array_merge() function, 135, 380<br />

calculating union of two sets, 137<br />

array_merge_recursive() function, 380<br />

array_multisort() function, 133, 380<br />

array_pad() function, 119, 380<br />

array_pop() function, 138, 381<br />

array_push() function, 138, 381<br />

array_rand() function, 381<br />

array_reduce() function, 128, 381<br />

array_reverse() function, 134, 381<br />

arrays, 27, 116–139<br />

casting to/from objects, 44<br />

checking whether element exists, 122<br />

color index for images, 230<br />

converting to/from variables, 124<br />

displaying with print_r(), 78<br />

extension functions returning, 339<br />

extracting multiple values from, 120<br />

form values, 11<br />

functions for, 375<br />

global variables, EGPCS, 159<br />

$GLOBALS, 32<br />

identifying elements of, 117<br />

implementing sets with, 137<br />

implementing stacks with, 138<br />

indexed vs. associative, 116<br />

iterating over elements with foreach<br />

loop, 53<br />

keys and values, returning, 122<br />

modifying or applying operation to all<br />

elements, 135<br />

multidimensional, 120<br />

removing and inserting elements, 123<br />

resetting internal pointer to first<br />

element, 437<br />

slicing, 121<br />

474 | Index<br />

sorting, 28, 130–135<br />

with anonymous functions, 71<br />

in ascending order, 442<br />

multiple arrays at once, 133<br />

in natural order, 133<br />

<strong>PHP</strong> functions for, 130<br />

in random order, 134, 440<br />

reversing element order, 134<br />

with user-defined functions, 452<br />

with user-defined functions, by<br />

keys, 453<br />

in user-defined order, 131–133<br />

splitting into chunks, 121<br />

storing data in, 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 />

symbol tables, 33<br />

traversing, 125<br />

calling function for each element, 128<br />

with for loop, 127<br />

iterator functions, 126<br />

reducing an array, 128<br />

searching for values, 129<br />

array_search() function, 130, 382<br />

array_shift() function, 138, 382<br />

array_slice() function, 121, 382<br />

array_splice() function, 123, 382<br />

array_sum() function, 135, 382<br />

array_unique() function, 137, 383<br />

array_unshift() function, 138, 383<br />

array_values() function, 122, 383<br />

array_walk() function, 128, 383<br />

arsort() function, 130, 131, 383<br />

ascending order, sorting arrays in, 130<br />

ASCII<br />

representation of an image, 232<br />

US-ASCII character encoding, 270<br />

UTF-8 encoding for printing high-bit<br />

characters, 222<br />

ASCII order<br />

natural order in strings vs., 87<br />

value of first character in string, 428<br />

values for characters in string searches, 93<br />

asin() function, 62, 383<br />

asort() function, 130, 384<br />

ASP (Active Server Pages), embedding <strong>PHP</strong><br />

with ASP tags, 58<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!