[PHP] function 4. Intphpinfo (void) returns the current PHP version stringphpversion (void) print out the list of people contributing to this PHP Project. stringphp // output the PHP and current request information page.
Int phpinfo (void)
// Returns the current PHP version.
String phpversion (void)
// Print out a list of people contributing to this PHP project
String phpcredits (void)
// Convert var to an integer. Base is the conversion base. the default value is 10. The transformed variable var can be an array or a variable other than
Any type variable
Int intval (mixed var, int [base])
// Obtain the double precision of the variable
Double doubleval (mixed var)
// Obtain the string value of the variable
String strval (mixed var)
// Return the type of the variable
String gettype (mixed var)
// Set the variable type. Returns true if the conversion is successful.
Int settype (string var, string type)
// Sort array elements
Void sort (array)
// Sort array elements in reverse order
Void rsort (array)
// Apply the user function to each element of the array
Int array_walk (array, string func)
// Calculate the number of elements in an array
Int count (mixed var)
// Point the internal pointer of the array parameter to the last element and return this element.
Mixed end (array)
// Set the internal pointer of the array parameter to a forward element and return the element.
Mixed prev (array)
// Point the internal pointer of the array parameter to the next element and return the element
Mixed next (array)
// Point the internal pointer of the array parameter to 1st elements and return the element
Mixed reset (array)
// Returns the element pointed to by the internal pointer of the current array.
Mixed current (array)
// Check whether the value specified by needle exists in the haystack array. strict means strict matching (default)
Bool in_array (mixed needle, array haystack, [, bool strict])
// Returns the index value of the next element in the array.
Array each (array)
// Add the element to the end of the array
Int array_push (array stack, mixed var [, mixed...])
// An element pops up from the end of the array.
Mixed array_pop (array stack)
// An element pops up from the beginning of the array
Mixed array_shift (array stack)
// Return the element to the beginning of the array
Mixed array_unshift (array stack)
// Returns the current UNIX timestamp.
Int time (void)
// Input the time parameter to return the UNIX timestamp.
Int mktime (int hour, int minute, int second, int month, int day, int year)
// Obtain the Greenwich Mean Time in UNIX timestamp format
Int gmmktime (int hour, int minute, int second, int month, int day, int year)
// Format a time or date
String date (string format, int [timestamp])
// Obtain an array of date/time information
Array getdate (int [timestamp])
// Returns true if it is a valid date.
Bool checkdate (int month, int day, int [timestamp])
// Format the time or date expression of the server according to the region
String strftime (string format, int [timestamp])
// Convert the string representing the date and time into a timestamp. It can accept strings in most typical data formats. For example, YYYY-MM-DD
And MM/DD/YYYY
Int strtotime (string time, int now)
// Obtain the value of one second in the current time (in UNIX timestamp format. Returns a string.
String microtime (void)
// Returns the current time as an array
Array gettimeofday (void)
// Set random number
Void srand (int seed)
// Return a random number. if the maximum and minimum ranges of the random number are not specified, this function automatically retrieves a random number from 0 to rand_max.
. If the min and max parameters are specified, a number is obtained from the specified parameters.
Int rand ([int min], [int max])
// Returns the maximum allowed random number.
Int getrandmax (void)
Intphpinfo (void) // return the current PHP version stringphpversion (void) // Print out the list of people contributing to this PHP project stringphp...