| String Formatting Functions | |
|---|---|
| printf() | |
| int printf(string $sFormatted, ...) | |
| This function outputs the string given by $sFormatted and its formatting arguments that come after it. It returns the number of characters printed. | |
| Argument | Description |
| string $sFormatted | This is a string that will be printed, along with the given formatting. |
| sprintf() | |
| string sprintf(string $sFormatted, ...) | |
| This function returns the string given by $sFormatted and its formatting arguments that come after it. | |
| Argument | Description |
| string $sFormatted | This is a string that will be returned, along with the given formatting. |
| sscanf() | |
| various sscanf(string $sInput, string $sFormatted, ...) | |
| This function parses the input string according to the formatting designated by $sFormatted and returns the result. | |
| Argument | Description |
| string $sInput | This is a string that will be parsed according to the given formatting. |
| string $sFormatted | This is a string that defines the formatting, along with other arguments. |
| vprintf() | |
| int printf(string $sFormatted, array $qaArguments) | |
| This function outputs the string given by $sFormatted and its formatting array that comes after it. It returns the number of characters printed. | |
| Argument | Description |
| string $sFormatted | This is a string that will be printed, along with the given formatting. |
| array $qaArguments | This is an array of values that are used in the formatted string. |
| vsprintf() | |
| string vsprintf(string $sFormatted, array $qaArguments) | |
| This function returns the string given by $sFormatted and its formatting array that comes after it. | |
| Argument | Description |
| string $sFormatted | This is a string that will be returned, along with the given formatting. |
| array $qaArguments | This is an array of values that are used in the formatted string. |
© 20072025 XoaX.net LLC. All rights reserved.