1 Echo (); 2 print (); 3 Die (); 4 printf (); 5 sprintf (); 6 print_r (); 7 var_dump ();1 Echo ()You can output multiple strings at the same time, multiple parameters, no parentheses, no return values.2 print ()You can only output one string at a
Php
The output function has
Echo ()
function and
Print ()
Functions and formatted output functions
printf ()
Functions and
sprintf ()
Function.
One
Echo ()
Function
Echo ()
The function outputs one or more strings, which can be
Printf [plain] www.2cto.com output function printf: printf ([format_control_flg], arg) printf modifier-left aligned Width field step, 0 indicates 0 step size. the maximum length of the prec string, or the number of digits on the left of the decimal
1: Use the printf function to output the different types of variables, the% symbol, the output type, \ n for the line break, the code is as follows://2.2.cpp: Defines the entry point of the console application. //#include"stdafx.h" intMain ()
Usemap()function, the user entered an irregular English name, into the first letter uppercase, other lowercase canonical name. For example, enter:[‘adam‘, ‘LISA‘, ‘barT‘], Output:[‘Adam‘, ‘Lisa‘, ‘Bart‘]. Code:#定义一个listL = [] #设置名字的个数n = Int
Previous post: A detailed description of common formatted output characters for Python basicsHowever, sometimes we need to use more than a percentage of time, with this is very inconvenient, such as the number of errors% or one by one corresponding
C language Format function: #include int printf (const char *format, ..); int fprintf (file *stream, const char * FORMAT,&NBSP, ...); int sprintf (Char *str, const char *format, &NBSP, ...); int snprintf
1. Text Format
// Create a new font
LOGFONT log; // struct variable
CFont font; // font object
// Set attributes
Log. lfCharSet = ANSI_CHARSET;
Log. lfClipPrecision = 23; // specifies the font cropping precision.
Log. lfEscapement = 0; // the tilt
The vprintf () function outputs formatted strings.
The number format is the conversion format, starting from the percent sign ("%") to the end of the conversion character. The following possible format values:
%-Percentage sign returned% B-binary
Some monitoring scripts or restart services. The failure is successfully output in red or green.
A function is used to encapsulate this function.
Function: receives string parameters, changes the OK in the received parameter [] to red, and the FAILD
This program writes a struct array to a disk binary file, extracts several of them, and modifies the specific struct in the binary file. First run the Code:
// In-out stream. cpp: defines the entry point of the console application.//
# Include
Echo"Hello World";Echo"This spansMultiple lines. The newlines would beOutput as well ";Echo"This spansmultiple lines. The newlines would beoutput as well. ";Echo"Escaping characters is do" like this ".";//You can use variables inside of an echo
After guidance from laruence, I have made all-round changes, and I have limited ability to do the following:
ASP/Visual BasicCode Copy codeThe Code is as follows: Const P = 6' 2 entries per pageSet rs = server. Createobject ("ADODB. recordset
The number format is the conversion format, starting from the percent sign ("%") to the end of the conversion character. The following possible format values:%-Percentage sign returned% B-binary number% C-characters based on ascii values% D-signed
Just enter a function name like Google Debugger and the definition of this function will be displayed.
There is wood there is such a way Thank you!!!
Reply to discussion (solution)
PHP No Oh!There are errors in the number of file lines,
Print,print_r,printf,sprintf,die,echo,var_dump, Var_export Difference
1 Echo ()
You can output multiple strings at the same time, multiple parameters, no parentheses, no return values.
2 print ()
You can only output one string at a time, one
'Author: chjpeng'Email: chjpeng@163.comFunction writeSlt (arrstr, arrstrValue, selectedstr)'Arrstr: the value to be displayed in the option, the actual value of arrstrValue option, and the default value to be selected by selectedstr'Divide a string
Here are a few ways to combine the new T-SQL statement merge of output with 2008:
Create a new table below:
Copy Code code as follows:
CREATE TABLE Book (
ISBN varchar () PRIMARY KEY,
Price Decimal,
Shelf int)
CREATE
Sometimes in the Linux kernel debugging, want to know the current function of the caller who is not found in this function, today finally found this good thing.
void * __init memblock_virt_alloc_try_nid_nopanic (
phys_addr_t size, phys_addr_t align,
C language fgets (...) Read input from stream, opposite fputs (...) Writes data to a file.
for ANSI C programs, the runtime system opens at least three streams, including the following 3 streams:
1. Standard input standard inputs. The standard
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.