PHP function for ISBN code verification-PHP source code

PHP function code for checking ISBN codes Function isbn_sum ($ isbn, $ len) {/** This function is used to calculate ISBN weighting and * parameter description: * $ isbn: isbn code * $ len: isbn code length */$ sum = 0; if ($ len = 10) {for ($ I = 0;

4 methods for generating XML files in PHP-PHP source code

In PHP, there are four ways to generate XML files. For more information, see the four ways to generate XML files in PHP. For more information, see Generate the following XML stringXml code title1 content1

PHP obtains the unique identifier of a computer [cpu, network card]-PHP source code

PHP obtains the unique identifier of the computer [cpu, network card] and jumps // Function OnlyU () {$ a = ''; $ B = array (); if (function_exists ('exec ') {if (mailto :! @ Exec (/all ", $ B) {return false ;}} elseif (function_exists ('system')

Secure URL redirection-PHP source code

Php code jump with a safe URL function safe_redirect($url, $exit=true) { // Only use the header redirection if headers are not already sent if (!headers_sent()){ header('HTTP/1.1 301 Moved Permanently'); header('Location: ' . $

PHP method for adding nodes to XML-PHP source code

This article mainly introduces how to add nodes to XML by PHP. it involves the skills of php in operating XML files and has some reference value, for more information about how to add a node to XML by using PHP, refer to the next article. This

Magento file and database maintenance script-PHP source code

Magento file and database maintenance script global->resources->default_setup->connection->host;$db['name'] = $xml->global->resources->default_setup->connection->dbname;$db['user'] =

A simple PHP paging function-PHP source code

A simple PHP paging function --> $velocityCount--> --> [PHP] code $ TotalRecord "; if ($ lastpg \ N "; for ($ I = 1; $ I $ I\ N "; else $ pagecon. ="$ I\ N ";}$ pagecon. ="Page, total $ lastpg page ";}} else die ('pagepide () function with the

Comparison of several PHP sorting algorithms-PHP source code

The comparison of several PHP sorting algorithms lists the time comparison results of several PHP sorting algorithms. /* * Comparison between the time of four php sorting algorithms and the built-in sort sorting algorithm * 3000 elements, time used

PHP backup/restoration of MySQL database code-PHP source code

In the past, PHP was used to read the database structure and content, and then write files. This may result in the export of files not necessarily being fully imported into MySQL, think about using MySQL's built-in import and export commands. before

Determine whether a day is before or after a specified date-PHP source code

Judge whether a day is before or after a specified date --> $velocityCount--> --> [PHP] code $ Month) | ($ thismonth ==$ month & $ thisday> $ day) | $ thisyear> $ year) {echo 'has passed ';} elseif ($ thismonth ==$ month & $ thisday =$ day & $

Several methods to get the extension of paths-PHP source code

Several methods to obtain the suffix of a path jump $ File = "http://www.phpzixue.cn/images/phpzixue.gif"; function get_ext1 ($ file) {return substr (strrchr ($ file ,'. '), 1); // strrchr gets the character string from the last occurrence to the

How to add and delete a specified tag using jQuery-PHP source code

This article describes how to add or delete a specified tag in jQuery. This function can be implemented by dynamically adding or deleting a CSS class to an element, for more information about how to add and delete a specified tag using jQuery, you

Description of four methods for transferring values between PHP files-PHP source code

Four methods for transferring values between php files: 1. POST Post value is used for html In form, enter the url path of the page to jump to, and in method, enter the post method. After you press the submit button in the form, all the content

PHPEntity-PHP source code

PHPEntity jump _ Email;} public function setEmail ($ val) {$ this-> _ email = $ val; return $ this;} public function getComment () {return $ this-> _ comment;} public function setComment ($ val) {$ this-> _ comment = $ val; return $ this ;}}

PHP implements a reverse Polish approach-when calculating wages-PHP source code

PHP implements reverse polish-php code used to calculate wages 0, '(' => 10, '+' => 20, '-' => 20, '*' => 30, '/' => 30 ); // arithmetic operation private $ _ operator = array (',' + ','-','*','/',')'); public function _ construct ($ expression) {

Php security card-PHP source code

Php Security Card --> $velocityCount--> --> 1. [image] 2.png 2. [code] warehouse receiving of the security card $ This-> load-> model ('admin/m_mibao'); $ data = array (); // Generate random abscissa $ rand_str = $ this-> _ rand_str (10); $ arr =

Truncation string length (not differentiated between Chinese and English characters)-PHP source code

Truncate string length (excluding Chinese and English characters) static function tran($string,$length=0,$str='',$etc='...'){$result = '';$string = html_entity_decode(trim(strip_tags($string)), ENT_QUOTES, 'utf-8');for($i = 0, $j = 0; $i = $length){

Perpetual Calendar PHP-PHP source code

Perpetual Calendar PHP "); Print (""); Print ("". Date (" Y year m month ", mktime (, 0, $ MM, 1, $ YYYY )).""); Print (""); Print (""); Print ("DayIII3.ThuV.Sat."); $ CurrentDays = 1; for ($ a = 1; $ a $ lastDay & $ currentDays = 1 & ($

Do not use the mb_substr function to cut string functions-PHP source code

Skip to the string function without using the mb_substr function Function cutstr ($ string, $ length, $ dot = '... ') {global $ charset; if (strlen ($ string) '), array ('&', '"', ''), $ string); $ strcut = ''; if (strtolower ($ charset) = 'utf-8')

PHP source code

PhpUBB parsing php UBB parsing /** + Parse * UBB resolution + ---------------------------------------------------------- * @ return string + response */function ubb ($ Text) {$ Text = trim ($ Text ); $ Text = ereg_replace ("\ n ","", $ Text); $

Total Pages: 12780 1 .... 11290 11291 11292 11293 11294 .... 12780 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.