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.

implode<br />

string implode(array strings, string separator)<br />

Returns a string created by joining every element in strings with separator.<br />

import_request_variables<br />

bool import_request_variables(string types[, string prefix])<br />

Imports GET, POST, and cookie variables into the global scope. The types parameter<br />

defines which variables are imported, and in which order—the three types are "g" or "G",<br />

"p" or "P", and "c" or "C". For example, to import POST and cookie variables, with cookie<br />

variables overwriting POST variables, types would be "cp". If given, the variable names are<br />

prefixed with prefix. Ifprefix is not specified or is an empty string, a notice-level error is<br />

sent due to the possible security hazard.<br />

in_array<br />

bool in_array(mixed value, array array[, bool strict])<br />

Returns true if the given value exists in the array. If the third argument is provided and is<br />

true, the function will return true only if the element exists in the array and has the same<br />

type as the provided value (that is, "1.23" in the array will not match 1.23 as the argument).<br />

If the argument is not found in the array, the function returns false.<br />

ini_alter<br />

string ini_alter(string variable, string value)<br />

This function is an alias for ini_set( ).<br />

ini_get<br />

string ini_get(string variable)<br />

Returns the value for the configuration option variable. Ifvariable does not exist, returns<br />

false.<br />

ini_restore<br />

string ini_restore(string variable)<br />

Restores the value for the configuration option variable. This is done automatically when a<br />

script completes execution for all configuration options set using ini_set( ) during the<br />

script.<br />

414 | Appendix A: Function Reference<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!