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.

asort<br />

void asort(array array[, int flags])<br />

Sorts an array, maintaining the keys for the array values. The optional second parameter<br />

contains additional sorting flags. See Chapter 5 and sort for more information on using<br />

this function.<br />

assert<br />

int assert(string|bool assertion)<br />

If assertion is true, generates a warning in executing the code. If assertion is a string,<br />

assert( ) evaluates that string as <strong>PHP</strong> code.<br />

assert_options<br />

mixed assert_options(int option[, mixed value])<br />

If value is specified, sets the assert control option option to value and returns the previous<br />

setting. If value is not specified, returns the current value of option. The following values<br />

for option are allowed:<br />

atan<br />

double atan(double value)<br />

Returns the arc tangent of value in radians.<br />

atan2<br />

ASSERT_ACTIVE Enable assertions.<br />

ASSERT_WARNING Have assertions generate warnings.<br />

ASSERT_BAIL Have execution of the script halt on an assertion.<br />

ASSERT_QUIET_EVAL Disable error reporting while evaluating assertion code given<br />

to the assert( ) function.<br />

ASSERT_CALLBACK Call the specified user function to handle an assertion. Assertion<br />

callbacks are called with three arguments: the file, the<br />

line, and the expression where the assertion failed.<br />

double atan2(double y, double x)<br />

Using the signs of both parameters to determine the quadrant the value is in, returns the<br />

arc tangent of x and y in radians.<br />

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