When I saw the address of a regular article today, I found the Array_unique function, and I didn't know what he was doing. After finding out, he was going to the data in the array,
Here's a look at the Array_unique syntax:
Array_unique (Array ());
On the previous page I began to explain the importance of object-oriented and how to create a basic object. We will finalize a lot of details here and now.class variables and visibilityIn class, we first determine our variables. In this case, our
How do I get information about the server in the PHP way? In fact, only three code, that is, you can easily get to the end of a file related information and the site information. The code is as follows:
$fp = fopen ("http://www.***.com/***.htm", "
Syntax: Boolean switch Directory (string directory) dirDirectory Changes to. Changes current working directory.Returns true upon success. If an error occurs, FALSE is returned.ExampleIf (chdir ("upload ")){Print "Changed current directory
PHP array_slice () functionPHP Array functionsDefinition and usageThe array_slice () function extracts a value from the array based on the conditions and returns it.Note: If the array has a string key, the returned array retains the key name. (See
Php imagecolorallocateImagecolorallocate-assign a color imageInt imagecolorallocate (resource $ image, int $ red, int $ green, int $ blue)Returns the color of a given RGB component.Imagecolorallocate () must be called to create each color, which
Imageantialias(PHP 4> = 4.3.2, PHP 5)DescriptionBoolean imageantialias ($ sourc, $ bool)The active line anti-walk pattern quick draw method and wired polygon. It does not support Alpha components. It can be directly mixed. However, it can only be
Zend_version(PHP 4 and PHP 5)Zend_version-the obtained version of the current Zend engineDescriptionString zend_version (invalid)Returns the version of a string that is currently running the Zend Engine.Return valueReturns the Zend Engine version
In_array(PHP 4 and PHP 5)In_array-check whether an array of values existsDescriptionBoolean in_array (mixed $ needle, array $ heexke [, Boolean $ strict])Search for the needle of heatake.ParametersNeedleThe value to be searched.Note: If the needle
Array_search("= 4.0.5, PHP 5" in PHP 4)Array_search-the key to the success of a search array for a certain value and the corresponding returnDescriptionHybrid array_search (Hybrid $ needle, array $ heatake [, Boolean $ strict])Search for the needle
Array_map("= 4.0.6, PHP 5" in PHP 4)Array_map-array of considerations for various elements of callbackDescriptionArray array_map (callback $ callback, array $ arr1 [, array $...])Array_map () returns all content contained in an array. The callback
Get_cmd_var(PHP 4 and PHP 5)DescriptionString get_cfg_var (string $ option)PHP configuration options.This function does not return the PHP edits set during configuration information, or read the configuration files from Apache.Check whether the
Set_include_path("= 4.3.0, PHP 5" in PHP 4)Set_include_path-set and include_path configuration optionsDescriptionString set_include_path (string $ new_include_path)And the deadline script for the include_path configuration
Filesize(PHP 4 and PHP 5)Filesize-get the file sizeDescriptionInternational filesize (string $ file name)Obtain the file of the specified size.ParametersFile nameFile path.Return valueThe size of the returned file is in bytes, or FALSE (and the
Syntax:Definition and usageThis file () reads a file to an array.Each array element is contained from this file, and linefeeds are still valued.SyntaxFile (path, include_path, context)ParameterDescriptionPathFile pathInclude_pathOptional. Set this
Definition and usageThe filter_var_array () function obtains multiple variables and their selected filters.This function is useful in filtering many values that do not require filter_var (), many.Returns an array of values required for the success
Definition and usageThe str_shuffle () function randomly shuffles all character strings.SyntaxStr_shuffle (string)ParameterDescriptionStringString required. Specify string shufflingLet's take a look at the str_shuffle function tutorial. Output
PHP tmpfile () function example tutorialDefinition and usageThe tmpfile () function creates a unique name read/write (watt +) mode in a temporary file.SyntaxTmpfile ()Note: when a temporary file is automatically deleted, fclose () is disabled, or
PHP array_push () function example tutorial and usageDefinition and usageThis array_push () function inserts an array at the end of one or more elements.SyntaxArray_push (array, value1, value2 ...)Parameter descriptionArray required. Specify an
Php file_get_contents function,This function is used to read the content of the remote server file, which greatly facilitates the collection of friends. You can save the remote server file to your own database with a simple sentence, you can't
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service