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 ());
How to page pages in PHP This is a beginner's tutorial, we have a bit of a difference with the ASP page, let's talk about the simplest PHP page code, we need to have a database. If we have a number in the database there is a table A below is the
To make this system more powerful, we don't want all users to have the same status in our group. Some users need administrators, other moderators, and other ordinary users only. How can we think of this in our object? The answer is inherited-the
Connecting to a database$link _id = mysql_connect ("localhost", "root", "") or Die ("Connection failed");if ($link _id){mysql_select_db ("My_test");if (!$_get[id]){
$result =mysql_query ("SELECT * from UserInfo");echo " number User name Sex Age
The chmod () function changes the file mode.Chmod-Changes file modeTRUE is returned if the call succeeds. Otherwise, FALSE is returned.SyntaxChmod (file, mode) Parameters Description File
Is_file-Tells whether the filename is a regular fileUsage ps教程is dc-description">BoolIs_file(String$ Filename) $ File is a required parameter.Let's take a look at a classic is_file test instance.Var_dump(is_file('a_file.txt '))."";Var_dump (is_file
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
Extract(PHP 4 and PHP 5)Extract-import to the current variable symbol table from an arrayDescriptionExtract (array $ var_array [Abstract $ extract_type = EXTR_OVERWRITE [, string $ prefix])Imports an array of variables to the current symbol
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_splice(PHP 4 and PHP 5)Array_splice-some arrays are deleted and replaced with othersDescriptionArray array_splice (array & $ investment, international $ offset [Abstract $ Length = 0 [, mixed $ change])Delete the specified element offset and
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
Curl_init("= 4.0.2, PHP 5" in PHP 4)Curl_init-initialize a curl meetingDescriptionResource curl_init ([String $ url = zero value])Initialize a new meeting and return a curl processing for the curl_setopt (), curl_exec (), and curl_close () functions.
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