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.

an asterisk (*), which uses all arguments to the end of the input data. If no repeater argument<br />

is specified, a single argument is used for the format character. The following<br />

characters are meaningful in the format string:<br />

a NUL-byte-padded string<br />

A Space-padded string<br />

h Hexadecimal string, with the low nibble first<br />

H Hexadecimal string, with the high nibble first<br />

c Signed char<br />

C Unsigned char<br />

s 16-bit, machine-dependent byte-ordered signed short<br />

S 16-bit, machine-dependent byte-ordered unsigned short<br />

n 16-bit, big-endian byte-ordered unsigned short<br />

v 16-bit, little-endian byte-ordered unsigned short<br />

i Machine-dependent size and byte-ordered signed integer<br />

I Machine-dependent size and byte-ordered unsigned integer<br />

l 32-bit, machine-dependent byte-ordered signed long<br />

L 32-bit, machine-dependent byte-ordered unsigned long<br />

N 32-bit, big-endian byte-ordered unsigned long<br />

V 32-bit, little-endian byte-ordered unsigned long<br />

f Float in machine-dependent size and representation<br />

d Double in machine-dependent size and representation<br />

x NUL-byte<br />

X Back up one byte<br />

@ Fill to absolute position (given by the repeater argument) with NUL-bytes<br />

parse_ini_file<br />

array parse_ini_file(string filename[, bool process_sections])<br />

Loads filename, a file in the standard <strong>PHP</strong> .ini format, and returns the values in it as an<br />

associative array. If process_sections is set and is true, a multidimensional array with<br />

values for the sections in the file is returned.<br />

This function does not bring the values in filename into <strong>PHP</strong>—it is only meant to allow you<br />

to create configuration files for your applications in the same format as <strong>PHP</strong>’s php.ini file.<br />

parse_str<br />

void parse_str(string string[, array variables])<br />

Parses string as if coming from an HTTP POST request, setting variables in the local scope<br />

to the values found in the string. If variables is given, the array is set with keys and values<br />

from the string.<br />

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

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

parse_str | 429

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

Saved successfully!

Ooh no, something went wrong!