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.

Calculates the Levenshtein distance between two strings; this is the number of characters<br />

you have to replace, insert, or delete to transform one into two. By default, replacements,<br />

inserts, and deletes have the same cost, but you can specify different costs with insert,<br />

replace, and delete. In the second form, you provide a callback to calculate the cost of an<br />

operation.<br />

link<br />

int link(string path, string new)<br />

Creates a hard link to path at the path new. Returns true if the link was successfully created<br />

and false if not.<br />

linkinfo<br />

int linkinfo(string path)<br />

Returns true if path is a link and if the file referenced by path exists. Returns false if path is<br />

not a link, if the file referenced by it does not exist, or if an error occurs.<br />

list<br />

void list(mixed value1[, ... valueN])<br />

Assigns a set of variables from elements in an array. For example:<br />

list($first, $second) = array(1, 2); // $first = 1, $second = 2<br />

Note: list is actually a language construct.<br />

localeconv<br />

array localeconv( )<br />

Returns an associative array of information about the current locale’s numeric and monetary<br />

formatting. The array contains the following elements:<br />

decimal_point Decimal-point character<br />

thousands_sep Separator character for thousands<br />

grouping Array of numeric groupings; indicates where the number<br />

should be separated using the thousands separator character<br />

int_curr_symbol International currency symbol (e.g., “USD”)<br />

currency_symbol Local currency symbol (e.g., “$”)<br />

mon_decimal_point Decimal-point character for monetary values<br />

mon_thousands_sep Separator character for thousands in monetary values<br />

420 | 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!