String operations and regular expressionsString formatting;Concatenate and separate strings using string functions;String comparison;Use string functions to match and replace substrings;Use a regular expression;String formatting1. Space removal:
PHP generates Excel files This article collects three PHP generated Excel file code program, the first is a more comprehensive generation function, the following two is very simple, but not as good as the first, OK now look at the principle of
The code is as follows
Copy Code
Class excel{var $header = ""xmlns:x= "Urn:schemas-microsoft-com:office:excel"Xmlns:ss= "Urn:schemas-microsoft-com:office:spreadsheet"Xmlns:html= "HTTP://WWW.W3.ORG/TR/REC-HTML40" > "; var $footer = ""
Output statement: echo (), print () instance: echo & amp; 39; hello & amp; 39;, & amp; 39; world & amp; 39; note:, ** variable: must start with $, case sensitive, the first character must be
Output statement:Echo (), print ().
Instance: echo 'hello',
Output statement: echo (), print (). instance: echo #39; hello #39;, #39; world #39; note: #, and ** variable: the variable must start with $ and be case sensitive, the first character must be...
Output statement:Echo (), print ().
Instance: echo
Some basic PHP syntax (array, string)I wrote some basic PHP syntax, as well as form submission and processing. In this article, I wrote the usage of arrays and the processing of arrays and strings, hope to help you: Multi-dimensional array:$ Arr1 =
Php Tutorial basicsOutput statement:Echo (), print ().Eg:Echo 'hello', 'world ';Note:#,//,/**/Variable:It must start with $ and be case sensitive. The first character must be a letter or underscore. Link string:Use a dot (.) to connect two
/*I set the login name and password and session variables such as ... If they are not saved from the next page, a session state variable is not good for everyone, it will be. Because it will return "fake" and redirect to the login page?*/
The code is as follows
Copy Code
Class excel{ /*** Header Excel file (line with prefix)** XML specifications copied from Excel.** @ Access Private* @ var series*/var $header = ""xmlns:x= "Urn:schemas-microsoft-com:office:excel"Xmlns:
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.