Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the points to pay attention to in the process of learning php?

Shulou Source: shulou.com Published: 2022-06-03 07:38:55 11月15日 Update

This article introduces the relevant knowledge of "what are the points you need to pay attention to in the process of learning php". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

1.php passes a value to javascript

How php passes the value to javascript: you need to put quotation marks around the tag

Note: in fact, there was a mistake in my original understanding. Php is a dynamic display language. In fact, in the echo that displays the relevant text, it is natural to add quotation marks because the original one does not contain quotation marks.

two。 Timestamp conversion

Strtotime can convert datetime in mysql into timestamps.

3. About data rounding

The 2 after number_format ($time*$deposit_money*0.05/365,2) indicates that 2 decimal places are reserved and are rounded. Another way echo sprintf (".2f", $number); not rounded

1.GRANT and REVOKE commands:

Grant and revoke permissions to mysql users, which are divided into four levels: global-database-table-column

two。 Create an index

Can make queries faster create index statements

3. Retrieve variables

$POST $_ GET $_ REQUEST

4.heredoc syntax

Echo

Tags: Process learning rounding actual quotation marks rounding content actually data methods more permissions knowledge practicality learning and then things global dynamic variables Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information MariaDB Shulou Technology Redmi Apple