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.

explode<br />

array explode(string separator, string string[, int limit])<br />

Returns an array of substrings created by splitting string wherever separator is found. If<br />

supplied, a maximum of limit substrings will be returned, with the last substring returned<br />

containing the remainder of the string. If separator is not found, returns the original string.<br />

extension_loaded<br />

bool extension_loaded(string name)<br />

Returns true if the named extension is loaded or false if it is not.<br />

extract<br />

int extract(array array[, int type[, string prefix]])<br />

Sets the value of variables to the values of elements from an array. For each element in the<br />

array, the key is used to determine the variable name to set, and that variable is set to the<br />

value of the element.<br />

The second argument, if given, takes one of the following values to determine behavior if<br />

the values in the array have the same name as variables already existing in the local scope:<br />

The function returns the number of successfully set variables.<br />

fclose<br />

bool fclose(int handle)<br />

Closes the file referenced by handle; returns true if successful and false if not.<br />

feof<br />

EXTR_OVERWRITE (default) Overwrite the existing variable<br />

EXTR_SKIP Don’t overwrite the existing variable (ignore the value<br />

provided in the array)<br />

EXTR_PREFIX_SAME Prefix the variable name with the string given as the<br />

third argument<br />

EXTR_PREFIX_ALL Prefix all variable names with the string given as the<br />

third argument<br />

EXTR_PREFIX_INVALID Prefix any invalid or numeric variable names with the<br />

string given as the third argument<br />

int feof(int handle)<br />

Returns true if the marker for the file referenced by handle is at the end of the file (EOF) or<br />

if an error occurs. If the marker is not at EOF, returns false.<br />

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

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

feof | 397

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

Saved successfully!

Ooh no, something went wrong!