Home > Article > Backend Development > PHP programming notes sharing, PHP programming notes_PHP tutorial
Three ways to get POST data in php
php image watermark source code
php ajax json is the simplest Example
php Chinese character to pinyin source code
php traverses the directory, generates the md5 value of each file in the directory and writes it to the result file
php implements the linux command tail -f
php json_encode and json_decode use Example
php curl simulates login and obtains data
php fprintf writes the formatted string to the stream
php explode splits the string into an array
php crc32 calculates the 32-bit CRC of the string (Cyclic redundancy check)
php count_chars returns information about the characters used in the string
php convert_uuencode function uses uuencode to encode a string
php convert_uudecode function decodes the uuencode encoded string
php three Instructions for using meta operators
php ternary operator example explanation
The difference between php const and define
php Call to undefined function curl_init() in E:/w
php display_errors Turn on debugging function
Detailed explanation of the difference between php static const define variables
php Use fopen and file_get_contents to read file examples
php Convert excel numerical format to date format
php convert_cyr_string Convert a string from one Cyrillic character set to another
php chunk_split string splitting function
php chr gets the character corresponding to the ASCII value
php chop removes spaces or other predefined characters at the right end of the string
php bin2hex converts ASCII characters to hexadecimal Value
php addslashes Add backslash before predefined characters
php addcslashes Use backslash to escape characters in string
php function explanation and analysis
php process control if,switch , while, for, break and other examples detailed explanation
php operators and expressions detailed explanation
php foreach array traversal example detailed explanation
php array merge array_merge and array_merge_recursive detailed explanation
single quote and double quote definition characters in php Difference analysis of strings
php get_class get_class_methods gets the current class name and function name
Introduction to php magic constant examples
Detailed explanation of php switch usage examples
PHP clears the space codes at both ends of all strings in the array
Detailed explanation of the difference between assignment by value and assignment by reference in php
Detailed explanation of variable reference and variable destruction mechanism in php
The difference between php die() and exit()
php One line of code to get the file suffix name
php this Special usage
Detailed explanation of the use of reference symbol (&) in php
php isset() is_null() empty() Difference and usage
Collection of commonly used functions in php
PHP and jquery real-time display website online Number of people
Several ways to judge whether an array is empty in php
File upload implemented by php
Detailed explanation of PHP namespace instance
PHP implements an efficient database
PHP implements Hash table function
php Analyze the reason why the Session is invalid
php Several ways to replace mobile phone numbers with asterisks
PHP determines the city and other information based on the IP address
php combines mysql to implement user registration example
php usort() sorts the array through the user-defined comparison function
php uksort sorts the array Sort by key name
php uasort Sort the values in the array
Detailed explanation of PHP anonymous functions and precautions
Several examples of new features of PHP5.6 CONST
php How to disable the eval() function
Usage of php new self() keyword
The difference between static static variables and ordinary variables in php
php shares two methods of obtaining file suffix names
php uniqid mt_rand generates random non-repeating strings
How to get the last day of last month in php
Several ways to delete session in php
How to use and introduce the PHP Closure class
Explanation of php date_parse function examples
php date_parse converts time into seconds
php sort function sorts the array in ascending order
php shuffle sorts the array randomly
php rsort sorts the array
php reset() function points the internal pointer to the first element in the array and outputs
php range function creates an array containing the specified range of cells
php prev function gets the value of the previous element in the array
php next function outputs the value of the next element in the array
php natsort sorts the array
php natcasesort sorts the array in a case-insensitive manner
php list() assigns values to a set of variables using elements in the array
php ksort sorts the array in ascending order by key name
php krsort Sort the array in descending order by key name
php key function gets the key name of the current element in the array
php in_array() checks whether a certain value exists in the array
php array processing function extract (extract the array key name As variable name, array key value as variable value)
php end gets the value of the last element of the array
php each returns the current key-value pair in the array and moves the array pointer forward one step
php current get The value of the current cell in the array
php count Get the number of elements in the array
php compact Create an array through variables (use the variable name as the array index and the variable value as the array value)
php asort Get the value of the array Sort alphabetically or numerically in ascending order and maintain index relationships
php arsort sorts the values of the array in descending alphabetical or numerical order
php array_walk applies a user-defined function to each element in the array
php array_walk_recursive uses a custom function to process each element in the array
php array_values returns all the values of the array
php array_unshift inserts a new value to the beginning of the array
php array_unique deletes duplicate values in the array
php array_uintersect calculates the intersection of arrays
php array_uintersect_uassoc calculates the intersection of arrays
php array_uintersect_assoc calculates the intersection of arrays
php array_udiff compares the key values of two arrays and returns the difference
php array_udiff_uassoc calculates the difference of arrays with index check
php array_udiff_assoc calculates the difference of two arrays
Detailed explanation of how to use the wp_title() function in WordPress
php strstr() Gets all characters after the specified string
PHP substr_count() Gets the number of occurrences of a substring
PHP strcmp() and strcasecmp() The difference
CI (Codeigniter) Setting enhanced configuration class instance
php How to use the WeChat public platform development model to implement multiple customer services
yii implements the method of adding default values to the model (2 methods)
Yii cleanup Caching method
joomla database operation example code
php getimagesize length and width detection code of uploaded images
Simple PHP upload image, delete image implementation code
php ajax no refresh upload image example code
PHP uploads images to generate thumbnails (GD library)
Differences in the usage of sprintf and printf functions in PHP
php array_sum calculates the sum of all values in the array
php array_splice deletes part of the array and replaces it with other values
php Output json and display Chinese characters in json
The difference between time and date in php
php calculates the number of days, hours, minutes and seconds between two times
Thinkphp session writing Enter the database
php uses SMTP protocol to send emails
php array_slice takes out a sequence in the array
php array_shift deletes the first element in the array
php array_search searches for the specified value in the array
php array_reverse returns an array in reverse order
php array_replace function replaces the elements of the first array with the passed array
php utf-8 and gb2312 automatic conversion
php shares a function that recursively traverses files
Several ways to prevent repeated submission of forms in php
php ffmpeg intercepts specified frames of videos into pictures
PHP HTTP authentication
php mysql user registration source code
php A complete cookie login source code
php mysql User login source code
php array_replace_recursive recursively replaces the value of the first array with the value of the following array
php array_reduce() uses a callback function to iteratively reduce the array to a single value.
php array_rand randomly takes out one or more values from the array
php array_push() adds one or more elements to the end of the array
php array_product calculates the product of all values in the array
php array_pop deletes the array The last element
$_SERVER Server environment information details
php urldecode decodes the encoded URL string
php urlencode encodes the string in URL
php shares a string encryption and decryption function
php converts UTF-8 and GB2312 URL encodings
php converts between UTF-8 and GB2312 encodings
php determines whether the string encoding is utf-8 or gb2312
php array_pad fills the array to the specified length
php intercepts strings in utf-8 format
php set_include_path function sets include_path configuration options
Explanation of DIRECTORY_SEPARATOR constant and PATH_SEPARATOR constant in php
php determines the current server system type through PATH_SEPARATOR
php array_multisort pair Array sorting
php array_merge Array merge
php array_merge_recursive Merge two or more arrays into one array
php Share an operation (add, delete, modify, check) mysql database class
php array_map uses custom The function processes each value in the array
php array_keys returns the key name of the array
php checkbox The implementation of the default selected checkbox.
php Get the value of the checkbox
php If you submit a form on this page, how to remember the value of the radio radio button
php How to get the value of the radio radio button
php array_key_exists() The difference with isset()
php array_key_exists checks whether a key name or index exists in the array
php array_intersect calculates the intersection of arrays
php uses iframe to upload files without refreshing
php uses html5 FormData to implement No refresh file upload
php Use html5 to implement multi-file upload
php Implementation of multi-file upload
php Modify upload file size limit
php file upload example
php is_uploaded_file() Determine the specified file Whether it is uploaded through HTTP POST
Three ways to transfer values between php pages
php Use input hidden to pass value examples
php array_intersect_ukey Use callback functions to compare key names to calculate the intersection of arrays
php array_intersect_uassoc uses a user-defined function to calculate the intersection of two arrays
php array_intersect_key uses key names to calculate the intersection of arrays
php array_intersect_assoc compares the key names and key values of two arrays and returns the intersection
php array_flip reverse Exchange keys and values in the array
Explanation of php array_filter function example
Three ways to simulate post submission with PHP
php Use curl to simulate post submission
php Simulate form post submission with fsockopen
php form $_POST[] example application
How does php get the select multiple box multiple Value
php How to get the selected value in the select drop-down list
php Set an option of select to be selected
How to return multiple values from a PHP custom function
php array_fill fills with the given value Array
php array_fill_keys() fills the array with the specified keys and values
php extract processes the name of the form element as the variable name and the value of the element as the variable value
php form is submitted to this page
php How to determine which values of the checkbox multi-select box are selected
php Determine whether the checkbox is selected
php checkbox multi-select box and pass the value
php mail Send email (with carbon copy cc and private carbon copy bcc)
php array_diff function usage
php array_diff_ukey() function explanation
php array_diff_uassoc() function example
php form form example application
php simple file upload example
php array_diff_key() Introduction to function examples
PHP array_diff_assoc() Detailed explanation of function examples
php array_count_values() Detailed explanation of function examples
php array_combine Detailed explanation of function examples
php array_column Function example applications
php array_chunk() Function examples and applications
php array_change_key_case function examples and applications
php cookie usage examples
php mysql_select_db examples
php substr_count finds the number of times a string appears in another string
PHP method to intercept Chinese strings
php simplexml parses xml
Example of using php regular expression function
How to convert word document into pdf in php
Example of using php mail() function
php mail email configuration method
php ajax Asynchronously read rss document data
php file upload example
php ajax no refresh file upload example
php cookie application example
php preg_match function and php preg_match_al function l examples, methods, examples
php Preg_match_all() function usage example
php preg_match regular expression function example
php ajax XMLHttpRequest example
php ajax implemented file upload progress bar
php $_SESSION member login example
php array function
Solution to the problem that php cannot output xml with Chinese characters
Convert the first letter of php string to upper and lower case