PHP & amp; MySQL (2) -- getting confused, php tutorial

Source: Internet
Author: User

PHP & MySQL (II) -- getting tired of learning, php tutorial

Madan, everything can be done together... I'm so happy to go to school every day at noon .. Good evening, but sleepy ........

Ii. PHP scripting language

What are the variables and Data Types? They are especially basic and easy to ignore.

<? Phpdefine ("PI", 3.1415926); // constant definition echo "circumference rate = ". PI. "<br/> ";//. is also used for $ var assignment and so on if (PI <3 & PI> = 2) {$ var = "shit ";} else {echo "f ** k ". "

All are mentioned above. The summary is: constants, connectors, user-defined functions, type conversion, type judgment, file reference, constant characters, short circuit design, var_dump.

Relatively messy.

Let's end with an example. Create a multiplication table by yourself.

<?php//Chapter 2's example which is a chengfabiaofunction chengfabiao($var){    for ($row=1;$row<=$var;$row++){        for($queue=1;$queue<=$var;$queue++){            $answer=$row*$queue;            echo "$row*$queue=".$answer."  ";        }        echo "


Let's change it. Basic things have to be reviewed frequently. I think so.

 

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.