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.

log<br />

double log(double number)<br />

Returns the natural log of number.<br />

log10<br />

double log10(double number)<br />

Returns the base-10 logarithm of number.<br />

long2ip<br />

string long2ip(int address)<br />

Converts an IPv4 address to a dotted (standard format) address.<br />

lstat<br />

array lstat(string path)<br />

Returns an associative array of information about the file path. Ifpath is a symbolic link,<br />

information about path is returned, rather than information about the file to which path<br />

points. See fstat for a list of the values returned and their meanings.<br />

ltrim<br />

string ltrim(string string[, string characters])<br />

Returns string with all characters in characters stripped from the beginning. If characters<br />

is not specified, the characters stripped are \n, \r, \t, \v, \0, and spaces.<br />

mail<br />

bool mail(string recipient, string subject, string message[, string headers<br />

[, string parameters]])<br />

Sends message to recipient via email with the subject subject and returns true if the<br />

message was successfully sent or false if it wasn’t. If given, headers is added to the end of<br />

the headers generated for the message, allowing you to add cc:, bcc:, and other headers. To<br />

add multiple headers, separate them with \n characters (or \r\n characters on Windows<br />

servers). Finally, if specified, parameters is added to the parameters of the call to the mailer<br />

program used to send the mail.<br />

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