Instance
Output formatted string:
Definition and usage
The vprintf () function outputs a formatted string.
Unlike printf (), the parameters in vprintf () are in the array. The array elements are inserted into the percent sign (%) symbol in the main
I. vfprintf
Function Name: vfprintf
Function: formatted data is output to the specified data stream.
Usage: int vfprintf (File * stream, char * format, va_list PARAM );
Function Description: vfprintf () will convert and format the data according to
Vprintf, vfprintf, and vsprintf
Syntax:
# Include # include int vprintf (char * format, va_list arg_ptr); int vfprintf (File * stream, const char * format, va_list arg_ptr); int vsprintf (char * buffer, char * format, va_list
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
PHPprint class function summary, allowing you to thoroughly understand the specific usage and scope of use of the print function.
The code is as follows:
/************ By garcon1986 *********/
// Difference between print and echo:
// 1. echo can
PHPprint class function summary, allowing you to thoroughly understand the specific usage and scope of use of the print function.
PHP print function summary, allowing you to thoroughly understand the specific usage and scope of use of the print
Copy codeThe Code is as follows:/************ By garcon1986 *********/// Difference between print and echo:// 1. echo can input multiple strings, but print cannot.Print "hello". "world"; // succeededEcho "hello". "world"; // success// Print "hello",
PHPprint class function usage summary. Copy the code as follows :? Php ************* bygarcon1986 *********** difference between print and echo: 1. echo can input multiple strings, but print cannot. Printhello. world;
The code is as follows:
/***
Copy Code code as follows:
/*************by garcon1986*********/
The difference between print and Echo:
1. Echo can enter multiple strings, and print cannot.
print "Hello". " World "; Success
The echo "Hello". World "; Success
Print "Hello"
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.