Fortune Telling Collection - Fortune-telling birth date - Php 99 multiplication table

Php 99 multiplication table

The formula table of 99 multiplication is a program problem in many PHP interview exams. Examining the logical thinking ability of PHP interviewers is mainly about the understanding and application of algorithms. The code for realizing the formula table of 99 times with PHP is as follows:

& lt? Server-side programming language (abbreviation of professional hypertext preprocessor)

for($ I = 1; $ i & lt=9; $ i++){ for($ j = 1; $ j & lt= $ I; $j++){

echo $ j .“X”。 $i."= "$ j * $ I。 " ";

}

Echo "& ltbr >;; ;

}

& gt

The running results are as follows:

Tip: In fact, there are two cycles, the outer layer controls the number of cycles, and the inner layer controls the number of formulas entered per line.

Extended data:

PHP function complete reference manual:

1, array function.

2. Calendar function: Calendar extension includes the function of simplifying the conversion between different calendar formats.

3. Date/time function: The date/time function is used to get the date and time from the server where the PHP script runs and format it.

4. Directory function: The directory function is used to obtain information about the directory and its contents.

5. Error/record function: Error/record function is used to process and record errors.

6. File system function: File system function is used to access and operate the file system.

7. Filtering function: PHP filters are used to verify and filter data from unsafe sources (such as user input).

8.FTP function: FTP function provides client access to file server through file transfer protocol (FTP).

9.HTTP function: HTTP function is used to manipulate the information sent by the Web server to the browser.

10, Libxml functions: Libxml functions and constants are used with SimpleXML, XSLT and DOM functions.

1 1, Mail function: The mail () function is used to send mail directly from the script.

12, Mathematical Function: Mathematical functions can handle values in the range of integer and floating-point numbers.

13. Miscellaneous functions: We classify functions that do not belong to other categories as miscellaneous functions.

14, MySQLi function: MySQLi function is used to access MySQL database server.

15, SimpleXML function: SimpleXML extension provides a simple way to get the name and text of XML elements.

16, string function.

17, XML parser function: XML parser function allows you to create XML parsers and define handles for XML events.

18, Zip file function: the Zip file function allows you to read compressed files.

References:

Baidu encyclopedia -PHP (hypertext preprocessor)