PHP code that converts currency numbers to Chinese capitals

convert currency numbers to Chinese uppercase PHP code: $num =round ($num, 2); $num = $num *100 if (strlen ($num) >10) {return "oh,sorry,the number is too long!";} $i =0; $c = ""; while (1) {if ($i ==0) {$n =substr ($num, strlen ($num) -1,1);}

kindeditor/Initialization Parameters

Filemanagerjson Specifies the server-side program that browses remote pictures.Data type: String; Default value: BasePath + ' php/file_manager_json.php ' allowpreviewemoticons True when the mouse is placed on the expression can

Upload picture (with content modifiable non-function)

Implement the ability to upload pictures Date_default_timezone_set ("PRC"); Header ("Content-type:text/html;charset=utf-8"); Require_once ("./function1.php"); if (Isset ($_get[' act ') && ($_get[' act '] = =

Write a blog system for loved ones and loved ones!

To the loved one, Lovers share the blog system!Js+jquery finish the effect.Write in front:Code is free for everyone to learn, if you receive please leave a message on the http://lysdjd.cn/includes/forxi/. Send some blessings to me and her. Thank you-

Automatic recognition of text encoding and conversion to target encoding!

When we are working on the page in PHP, we use the ICONV or Mb_convert functions for the conversion of the character set, but this is actually a prerequisite. That is, we have to know in advance what kind of code in and out, we can make the correct

Using 56 web-based components, API callback data

Upload video with 56 online components, then use API callback data, video ad-free, HD compression. The method of hosting the video is very practical.Case Address: Address upload componentUpload example: Upload effect56 Network wiki:56 Network open

PHP recursively replicates entire folder

A class that replicates an entire folder with PHP recursion /* * Folder Replication class, * Zhao June 14, 2012 17:20:30 * Blog: www.zhaochun.net */ Class CopyFile { Public $fromFile; Public

PHP image processing method, PHP image processing class

Previously written by a PHP online processing upload images, can be cropped. Add watermark map, watermark map More than the target image size, the watermark can automatically adapt to the target image and reduce, the watermark can be set with the

MySQL operation class, v0.2, add some solutions to deal with big data volume

/*mysql Simple class by Joffe q89949401 scarf @ Mad Code poet; This type of full static use when the direct include after using MySQL:: Method () name can because the class in the php5 inside the global visibility, so do not have to worry about the

Age based on date of birth (considering leap years)

Mainly considering the case of leap years, if someone was born in 2.29, then not a leap year then 2.28 will be counted function Age ($birth) { $age = Array (); $now = Date (' Ymd '); $now = "20110228";

Intelligent Human Submission Form JS effect code

User-friendly Code Web resource Code Station hint: test Intelligent user-friendly submission Form JS effect code This code to see the effect-because the loading JS necessary to refresh-will automatically determine the form focus of the

Digital conversion Chinese

Class transformnumber{ Public $chinaData = Array (' 1 ' = ' one ', ' 2 ' + ' II ', ' 3 ' = ' three ', ' 4 ' = ') ', ' 5 ' = ' Wu ', ' 6 ' = ' land ', ' 7 ' = ' seven ', ' 8 ' = ' ba ', ' 9 ' = ' jiu '); Public $chinaDataInt = Array (' 1 '

Learn PHP's adapter mode

The PHP design mode of the adapter mode, namely the adapter (alias wrapper) mode: The interface of a class is transformed into the interface of another class that the customer expects. Adapters allow classes that are incompatible with the original

Encoding of all files under the PHP conversion folder is appropriate for other encoded versions of the publishing site

The encoding of all files under the PHP conversion folder is suitable for other encoded versions of the publishing site for example, you have a GBK version you want to have a UTF8 version or you only GBK source code you want to develop two times but

PHP methods for generating static pages (three functions)

/** Create a Directory */ function MakeDir ($mudir) { $file = "./$mudir"; @mkdir ($file, 0777); } /** First create a sub-plate file path */ function Writemod ($filemodname) { $FP

UTF-8 and GBK code PHP gets the string length function

/* * Statistical string length * @param $str is counted as String */ function Sstrlen ($STR) { Global $charset; $n = 0; $p = 0; $c = "; $len = strlen ($STR); if ($charset = = ' utf-8′) { for ($i = 0; $i

Doubts about the session in PHP

Questions about the session in PHP, please read this article carefully, I believe you will have the harvest.Questions about the session in PHP, please read this article carefully, I believe you will have the harvest.First, the PHP session

thinkphp upload a picture whether to save the database class

Look at the project requirements: You can choose whether to save the database, specify the file type, file size, thumbnail and thumbnail size Class Attachmodel extends model{ /** * Attachment Upload * @param

A small function that determines whether there are strings that include Chinese

/* Can be used for user names and other places where Chinese characters are not allowed */ --Example $str = "dd* (*d"; if (ISCN ($STR)) { echo "includes strings in Chinese"; } else { echo "does not

Joke Smarty technology Configuration and application

Copy CodeSaved in the Templates directory.5. New file template configuration file: config.php Include ". /libs/smarty.class.php "; $NowPathArray =explode ("Test", str_replace ("\ \", "/", DirName (__file__)))

Total Pages: 5208 1 .... 3623 3624 3625 3626 3627 .... 5208 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.